Greetings!
I have stumbled upon an error while trying to deploy a smart contract to bsc mainnet.
Using remix and error is as following:
These are my settings:
If someone please could help me with this, it would be greatly appreciated!
Greetings!
I have stumbled upon an error while trying to deploy a smart contract to bsc mainnet.
Using remix and error is as following:
These are my settings:
If someone please could help me with this, it would be greatly appreciated!
It says execution reverted. Some assertion in the code failed.
Can you deploy to the JavaScript VM and debug why it reverts?
Thank you for the reply!
I’ll try this out and updates the thread ones finished.
Output from when i transact using Javascript VM (berlin)
status | true Transaction mined and execution succeed |
---|---|
transaction hash | 0x21ab6b3ff424c513caad74d94463ac1f1068649b90e675885c9d8c0035ecb756 Copy value to clipboard |
from | 0x5B38Da6a701c568545dCfcB03FcB875f56beddC4 Copy value to clipboard |
to | ERC20PistachioToken.(constructor) Copy value to clipboard |
gas | 80000000 gas Copy value to clipboard |
transaction cost | 80000000 gas Copy value to clipboard |
execution cost | 2121779 gas Copy value to clipboard |
hash | 0x21ab6b3ff424c513caad74d94463ac1f1068649b90e675885c9d8c0035ecb756 Copy value to clipboard |
input | 0x608…00000 Copy value to clipboard |
decoded input | { “address initialAccount”: “0x456Fd14c13b446b7d662772555E98510Ed698F6c”, “string _tokenSymbol”: “PCHIO”, “string _tokenName”: “Pistachio”, “uint256 initialBalance”: “1000000000000000000000000000000000”, “uint256 cap”: “0”, “bool _burnableOption”: true, “bool _mintableOption”: true, “bool _pausableOption”: true } Copy value to clipboard |
decoded output | - Copy value to clipboard |
logs | [ { “from”: “0xd9145CCE52D386f254917e481eB44e9943F39138”, “topic”: “0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef”, “event”: “Transfer”, “args”: { “0”: “0x0000000000000000000000000000000000000000”, “1”: “0x456Fd14c13b446b7d662772555E98510Ed698F6c”, “2”: “1000000000000000000000000000000000”, “from”: “0x0000000000000000000000000000000000000000”, “to”: “0x456Fd14c13b446b7d662772555E98510Ed698F6c”, “value”: “1000000000000000000000000000000000” } }, { “from”: “0xd9145CCE52D386f254917e481eB44e9943F39138”, “topic”: “0x6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f6”, “event”: “MinterAdded”, “args”: { “0”: “0x5B38Da6a701c568545dCfcB03FcB875f56beddC4”, “account”: “0x5B38Da6a701c568545dCfcB03FcB875f56beddC4” } }, { “from”: “0xd9145CCE52D386f254917e481eB44e9943F39138”, “topic”: “0x6719d08c1888103bea251a4ed56406bd0c3e69723c8a1686e017e7bbe159b6f8”, “event”: “PauserAdded”, “args”: { “0”: “0x5B38Da6a701c568545dCfcB03FcB875f56beddC4”, “account”: “0x5B38Da6a701c568545dCfcB03FcB875f56beddC4” } }, { “from”: “0xd9145CCE52D386f254917e481eB44e9943F39138”, “topic”: “0x6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f6”, “event”: “MinterAdded”, “args”: { “0”: “0x456Fd14c13b446b7d662772555E98510Ed698F6c”, “account”: “0x456Fd14c13b446b7d662772555E98510Ed698F6c” } }, { “from”: “0xd9145CCE52D386f254917e481eB44e9943F39138”, “topic”: “0x6719d08c1888103bea251a4ed56406bd0c3e69723c8a1686e017e7bbe159b6f8”, “event”: “PauserAdded”, “args”: { “0”: “0x456Fd14c13b446b7d662772555E98510Ed698F6c”, “account”: “0x456Fd14c13b446b7d662772555E98510Ed698F6c” } } ] Copy value to clipboard Copy value to clipboard |
value | 0 wei |
Output when using Javascript VM (berlin)
Not familiar with remix debugger, will need to get to know this better.
I’ll also add the txid if you’d like to have a look with debugger: 0xf2f7ea01ef2eee1ccd49b854b301e1d0921da6d9f1a9073acb5d06f2487b39de .
Did you searched in the forum?
Hello FreezyEx,
Yes i did and i actually saw that already, but i couldn’t get my head around it. (I’m still a newbie trying to learn…)
So the pcs routing adresse is missing you think?
I’ll link the source code here if you wanna have a look: https://pastebin.com/Z0WxMYbq .
This transaction appears to have succeeded!
@frangio What do you mean? I couldn’t get this to work unfortunatley
The screenshot is of a transaction with a checkmark, which means it succeeded.
@frangio Yes, but still - their is no actual transaction. If i paste the txid to the bscscan website, it will give me blank results.
This is still open, if someone has any good info i gladly appreaciate it
Sorry we haven't been able to help further @Epic. It sounds like you still have a lot to learn in order to understand some of these things. I would suggest searching for tutorials/walkthroughs on YouTube and Google to gain a better understanding.