Comments (11)
deploy environment: remix vm cancun
solidity version : 0.8.25
optimization: no
from remix-project.
Hello @alexanderhawl , do you see any errors in browser console too?
from remix-project.
just only revert. But I replay it in blocksec phalcon exploer, it says invalid opcode MCOPY.
from remix-project.
just only revert. But I replay it in blocksec phalcon exploer, it says invalid opcode MCOPY.
Can you share error screenshot?
This might not be related to cancun VM as if I compile using Shanghai EVM version and deploy to Remix VM(Shanghai) method call still fails
from remix-project.
Also, address(this).balance
returns the ETH balance of contract not the token balance
from remix-project.
I tried the code in foundry, the evm_version is shanghai, it also reverts.
from remix-project.
I used blocksec phalcon to fork a eth mainnet, transaction always went well no matter the compiler is cancun or shanghai. But if I selected remix vm cancun or shanghai, it reverted.
the revert picture in remix vm
the successful transaction in phalcon fork
https://app.blocksec.com/explorer/tx/eth/0xe3dd3123b5960961e8fd9c7acf84325afc08703662594e2c3335ad016fcac7cf?event=fork&forkId=fork_57869ed1534f4c6c926a5924ebbae1cd
from remix-project.
from remix-project.
Difficult to deduce what's wrong
from remix-project.
I found the error reason, in the remix vm , the token address is not a contract, so the balanceOf function is error. the res variable is 0x. So the abi.decode revert. Thanks your response.
from remix-project.
okay. That's great. Hope you can fix it now. Closing this.
from remix-project.
Related Issues (20)
- Too many AI's at top of Remix editor HOT 3
- Remix & front end dev
- fail to load dapp deployed by dapp-draft if the function's instructions contain no-english characters
- Injected Provider missing in Remix IDE on browser HOT 4
- Matomo update
- .MD files not highlighting in File Explorer
- Please delete
- convert folder to workspace
- I can't run script in terminal HOT 2
- BUG: Text cursor lagging behind its actual position HOT 4
- error while activating plugin from home tab
- Unable to Deploy Contracts on Custom Network HOT 5
- Documentation for pinning contracts HOT 1
- transact button not vertically centered
- Link to Bridges
- scrollbar style is not right
- Cloning workspace in vyper
- Basic input
- Add zksync-ethers v5.7.2
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 remix-project.