Function setCallCoins

  • Set mock for call coins.

    Deprecated

    Use mockTransferredCoins instead.

    Remarks

    This function is used to mock the call coins value for test purpose. Don't forget to reset the mock after the test.

    Example

    test('mocked SC call', () => {
    const coins: u64 = 123;
    setCallCoins(coins);
    const res = transferredCoins();
    expect(res).toBe(coins);
    setCallCoins(0); // Don't forget to reset the mock

    });

    Parameters

    • value: number

    Returns void

Generated using TypeDoc