Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxy fails with with message "sender_sol referenced before assignment" if from and to is same address #230

Closed
s-medvedev opened this issue Oct 15, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@s-medvedev
Copy link
Contributor

s-medvedev commented Oct 15, 2021

Symptom: can't transfer NEON to self

STR:
Send NEON through MetaMask to self

Actual result:
Fails with local variable 'sender_sol' referenced before assignment error message

Expected result:
Works correct

Additional info:

console.log({from: this.getNetworkAccount(), to: recipient, value: amount * 1e18, gas: 21000});
await this.ctx.web3.eth.sendTransaction({from: this.getNetworkAccount(), to: recipient, value: amount * 1e18, gas: 21000});

{
  from: '0x314dF55775e0b6F2B0c6d07C7Ec83a3e1cdC165e',
  to: '0x314dF55775e0b6F2B0c6d07C7Ec83a3e1cdC165e',
  value: 1000000000000000000,
  gas: 21000
}

Proxy Error: Error: local variable 'sender_sol' referenced before assignment
    at /app/node_modules/@trufflesuite/web3-provider-engine/subproviders/provider.js:18:36
    at XMLHttpRequest.request.onreadystatechange (/app/node_modules/web3-providers-http/lib/index.js:98:13)

┆Issue is synchronized with this Jira Task by Unito

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants