Comments (3)
in newTx. We accept both 0xchecksumed and bech32 addr. In contract params, currently it supports 0xchecksumed addr.
To convert address format for now. we can use crypto.getAddress(addr).checksum to convert.
I can convert the address internally when constructing the params. However there are risks such as user input raw base16(without checksumed).
I need further discussion about this issue, because currently encoding solidity contract is using eth‘s method.
from sdk.
one more thing.
const tx = contract.methods.transfer(address, parseInt(amount)).send({
from: active.address, // <--- address is of 0x format
gasLimit: '1000000',
gasPrice: new hmy.utils.Unit('10').asGwei().toWei(),
})
The from here is not necessarily needed. Because when the txn is signed, it will be replaced as signer’s address.
from sdk.
@mattlockyer would you try this branch to see if it works for you.
https://github.com/harmony-one/sdk/tree/neeboo/contract
from sdk.
Related Issues (20)
- Can't use the SDK with vite HOT 4
- RangeError: Maximum call stack size exceeded (during getTransactionCount) HOT 16
- Is it possible to delegate/undelegate ONE directly in solidity smart contracts? HOT 1
- Contract event listener stops receiving events HOT 4
- Add method to access hmy_getTransactionsHistory
- Remove encoding library bloat in @hamony-js/staking JavaScript SDK HOT 1
- The transaction is still not confirmed after 20 attempts
- Another Harmony SDK bug `FetchError: invalid json response body at https://api.s0.t.hmny.io/ reason: Unexpected token < in JSON at position 0` HOT 1
- invalid chain id for signer for
- Invalid path on module field HOT 2
- Transaction issue failed when I trying to doing a transaction
- TruffleProvider (HDNode) wallet inadvertently generates a new account/address accompanied with a random private key and mnemonic
- TruffleProvider is not processing web3.eth.getTransaction calls explicitly, causing errors
- Harmony RPC support on evm_increaseTime and evm_decreaseTime in test environments
- Superfluous pop in getRLPSigned
- Dependency Problem with @harmony-js/core
- How to get a specific token off of the harmony blockchain HOT 1
- Returned error: invalid address: 0x0000000000000000000000000000000000000000 HOT 5
- Running concurrent HRC20 token transfers, without an error. HOT 2
- Unable to catch errors some errors from the SDK in transactionBase.js HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sdk.