You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running into an error trying to create a tx on the dev-net. This error message isn't helping me.
Uncaught (in promise) Error: Cannot GET address/<--my wallet address revoked-->: [[object Object]]
at ProxyProvider.handleApiError (proxyProvider.js?2fbe:205)
at ProxyProvider.eval (proxyProvider.js?2fbe:174)
at Generator.throw ()
at rejected (proxyProvider.js?2fbe:25)
Here's my code:
async function mint() {
const transaction = await newTransaction(
address,
quantity * config.nftPriceInEgld
);
let provider = ExtensionProvider.getInstance();
await provider.init();
let hash = await provider.sendTransaction(transaction);
console.log(hash);
}
async function newTransaction(senderAddress, egldAmount = 1) {
const gasLimit = 500000;
const chainId = 'D';
let proxy = new ProxyProvider(config.network);
let account = new Account(new Address(address));
await account.sync(proxy);
console.log(account);
return new Transaction({
sender: new Address(senderAddress),
receiver: new Address(config.internalWalletAddress),
value: Balance.egld(egldAmount),
gasLimit: new GasLimit(gasLimit),
chainID: new ChainID(chainId),
nonce: account.nonce
});
}
The text was updated successfully, but these errors were encountered:
I am running into an error trying to create a tx on the dev-net. This error message isn't helping me.
Uncaught (in promise) Error: Cannot GET address/<--my wallet address revoked-->: [[object Object]]
at ProxyProvider.handleApiError (proxyProvider.js?2fbe:205)
at ProxyProvider.eval (proxyProvider.js?2fbe:174)
at Generator.throw ()
at rejected (proxyProvider.js?2fbe:25)
Here's my code:
The text was updated successfully, but these errors were encountered: