Skip to content

4.1.0 (2019-06-24)

Compare
Choose a tag to compare
@nduchak nduchak released this 24 Jun 13:55
· 2717 commits to master since this release
7537a77

Bug Fixes

  • Node: Do not throw error if internalUrl not provided. Instead use url (#503) (053faae)
  • TXBuilder: Fix payload serialization if you try to unpack and pack tx. (#498) (73552e5)
  • TxValidator: Fix validation of state channel open transaction (#496) (325cc90)

Features

  • ACI: Refactor ACI module. Split to separated files. (#505) (fb7bc00)

  • Selector: If default account address not provided use the first

  • ACI: Handle ACI without init function

  • ACI: Automatically decide to send transaction on-chai or call-static.
    Add options object like last arguments of generate fn under instance.methods

    const instance = await client.getContractInstance(source)
    // Deploy contract
    await contract.methods.init(100, 'test', options)
    //or
    await contract.deploy([100, 'test], options)
    // Call function
    const result = await instance.call('sum', [2, 5], options)
    //
      // Automatically decide to send tx on-chain or call-static(dry-run) base on if function stateful or not
      const result = await instance.methods.sum(2, 5, options)
      // Manually make on-chain
      const result = await instance.methods.sum.send(2, 5, options)
      // Manually make call-static
      const result = await instance.methods.sum.get(2, 5, options)
    //
    

Docs

  • Usage:: Add instructions about how to include directly the SDK in a html page

Notes

  • ACI: Change result object of ACI deploy function