Set mock for call coins.
Use mockTransferredCoins instead.
mockTransferredCoins
This function is used to mock the call coins value for test purpose. Don't forget to reset the mock after the test.
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});
Generated using TypeDoc
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