current position:Home>No problem in JS VM environment. This error will be reported in the test transfer after deployment to the local private chain
No problem in JS VM environment. This error will be reported in the test transfer after deployment to the local private chain
2022-02-04 00:10:39 【Q & A of Denglian community】
// Transfer method function transfer(address _to, uint256 _amount) public returns (bool success) {require(balanceMap[_to] + _amount >= balanceMap[_to],"check for overflows");require(balanceMap[msg.sender] >= _amount, "check money");balanceMap[msg.sender] -= _amount;balanceMap[_to] += _amount;emit Transfer(msg.sender, _to, _amount);return true;}
Other answers 1:
copyright notice
author[Q & A of Denglian community],Please bring the original link to reprint, thank you.
https://en.netfreeman.com/2022/02/202202040010374783.html
The sidebar is recommended
- How to use the price information of chainlink on the BSC chain?
- Is chainlink data aggregated on the chain or offline?
- How to obtain Dai for uniswap automatic transaction
- Abnormal address generated by Ethereum web Wallet
- How to use Web3 JS set mining?
- Find sushiswap LP mining reward principle and calculation process masterchefv2
- What do you think of Polkadot ecology and ecological project?
- Is chainlink data aggregated on the chain or offline?
- How does Web3 call the fallback function of the contract
- Erc20 token not received for contract
guess what you like
-
Project ID is required when obtaining Ethereum balance in Android Ethereum wallet development
-
Some doubts about beginner's super ledger
-
Contract has not been deployed to detected network (network / artifact mismatch)
-
Offline signature eip712, contract verification, and submission of metamask should report an error, but in fact, it is successfully executed on the chain?
-
Impact of Ethereum eip969 proposal on Ethereum miners
-
Can the transaction pair of erc721 token be established on uniswap for transaction? I looked at the source code of uni socks and found that it was erc20 token
-
How to generate 1 ~ 5 random numbers on eth chain
-
About using geth to synchronize Ethereum main network data, after changing the storage location of chaindata, it is found that the data starts to synchronize again
-
Can I use block Difficulty as a random number
-
Can an organization in fabric publish a chaincode that is only beneficial to its own organization, and the endorsement strategy only needs the signature of its own organization?
Random recommended
- I'd like to ask a question about metemask connecting private nodes
- About contract deployed(). Contract has not been deployed to detected network (network / artifact mismatch)
- Will there be any follow-up to yesterday's live broadcast of the scalable contract?
- The private key and address of your course code cannot be matched. I don't know where the problem is
- solidity 0.5. How to return an indefinite length array in an interface in X? For example, in this structure, struct teammember {uint256 totalamount; address [] top10members;}
- How to build your own public chain most quickly
- How does heco use chainlink?
- Copy's uniswp factory and route. Error publishing call on okex?
- Which can override specify?
- When metamask connects to the local private chain, an error occurs when setting the chainid, prompting "unable to obtain the chain IC, is your RPC URL address correct?"
- Application of blockchain technology aiming at the pain points in the process of building material procurement (Management)
- How to upgrade the erc721 contract in this article and deploy an agent contract to interact with users directly, so that when upgrading the erc721 contract in the future, there will be no need to redeploy and waste gas?
- How to develop a managed wallet?
- Modify in the contract; Is it the place where the code is placed?
- I installed it with NPM install bip39 ethereumjs wallet ethereumjs util -- save. There was a problem
- Truffle deployment failed. Only replay protected (eip-155) transactions allowed over RPC
- Ethereum network, can you call other people's contracts in your own contracts
- I applied for this ropsten test coin yesterday, but it didn't arrive today. Has this service been cancelled now?
- Uniswap v2router calls addliquidity always restore
- What is the most direct content to learn to be a DEX Trading Robot?
- What does this error report mean?
- Scalable smart contract
- [Beijing] [public chain development Recruitment] experience in open source is preferred
- How to upgrade the old version of Remix ide after it is installed locally
- Machine gun pool multi strategy question?
- Calling parent contract with different visibility from contract
- Metamask has been going around for days
- Hello, tiny bear, I have a question about Remix link private chain
- Contract deployment issues
- Defi LP how is the mining apy calculated
- How to develop mobile mining DAPP of heco fire coin ecological chain?
- How to write eth smart wallet contract similar to Huizhi?
- The error reported by the solidness is as follows!!!!!
- [Hangzhou] talent recruitment of blockchain top company, CBD of future science and Technology City
- Call contract data storage problem
- Bytes32tostring doesn't work. Ask the boss for help
- Web3 calls a read-only method, and the return value is 2. Why does it return such a string every time, and it is different every time? What is the following exception? Does anyone know
- Uniswap failed to add liquidity
- Ethereum modify consensus mechanism
- Decentralized wallet for web development