This repository has been archived by the owner on Nov 5, 2024. It is now read-only.
Version 0.1.10
Fixed Service Interaction
Last update introduced new build system, which "abruptly" lost Cadence template files for all service interactions. This version aims to fix this issue. We are sorry for the inconvenience 🙇♂️
Simplified Interactions
You can now send transactions and execute scripts by specifying their name. No need to deliberately get template code and pass it as argument.
const args = [["0x01", types.Address]]
await sendTransaction({name: "setup-account", args })
await executeScript({ name: "get-balance", args });
// or even easier
await sendTransaction("setup-account", args)
await executeScript("get-balance", args);
It's still possible to pass Cadence code via code
field for backward compatibility.
Adjust Jest assertions
Provided Jest assertions was adjusted to catch errors more reliably. We also exported shallThrow
method for cases, when interaction can reject Promise and throw error as well.