Set mock for call coins.
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; mockTransferredCoins(coins); const res = transferredCoins(); expect(res).toBe(coins); mockTransferredCoins(0); // Don't forget to reset the mock});
Generated using TypeDoc
Set mock for call coins.
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