sdk
sdk copied to clipboard
Javascript SDK of Harmony protocol.
With TruffleProvider as the provider, if one uses web3.eth.getTransaction(txHash) with a valid txHash, the web3 client would complain the underlying sender address `one1xxxxxx...` is not a valid Ethereum address. I...
Fixed by https://github.com/harmony-one/sdk/pull/84 The original code in the constructor of HDNode calls `this.getHdWallet(...)` with randomly generated mnemonic if none is supplied. This generates a new account in the process. This...
There is a typo in setMessegner, should be setMessenger https://github.com/harmony-one/sdk/blob/794a590238f215ad6d5481b5515623e1f83f9d04/packages/harmony-contract/src/contract.ts#L121
Amount of tokens to delegate and undelegate is typed as number, but expects amount in wei and is too big for number type. If type ignored and amount is sent...
**Steps** Create new contract with abi and address as params: `hmy.contracts.createContract(abi, contractAddress);` **What expected?** New contract instance will send to contractAddress **What happend?** New contract instance will send to options...
# Features - [x] Add missing RPC API to `Blockchain` class - [ ] Fix broken types as much as possible(typescript) # Documentation: - [ ] Use `TypeDoc` to generate...
I got this error while using the openzeppelin cli to deploy contract instances. ``` npx oz deploy Nothing to compile, all contracts are up to date. ? Choose the kind...
A call to a public variable inside a contract that is of type uint8 returns integer value and not hex bytes value. For example, a call to a token contract's...
After calling a single function that emits a single event, all event subscriptions are emitting in the SDK. For example: If I call a function `newContract` that emits a single...