Common Issues / FAQ
FAQ
Common Issues
Why am I getting issues with nonce errors?
State changing functions such as energize()
do not wait for confirmations before returning. Ethereum uses nonces to prevent attacks on the network, so sending too many transactions without waiting for confirmations may lead to nonce errors.
// Get the transaction
const tx = await nft.energize(...);
// Use wait() to sleep the thread until the transaction has confirmations
const receipt = tx.wait();
Last updated
Was this helpful?