Ropsten部署智能合约-4.2(mist部署)

本文档详细记录了在Ropsten测试网上使用Mist和Ethereum Wallet部署智能合约的过程,包括遇到的gas计算问题、网络连接问题及解决策略。在尝试旧版本以规避问题未果后,最终通过调整gas值和同步节点成功部署。
摘要由CSDN通过智能技术生成

https://github.com/ethereum/mist/releases/tag/v0.11.1——下载mist和ethereum wallet

打开ethereum wallet.exe

创建DQCOIN账户,并从0x8E0D8466eF0cC4b0a1301Aa7dA1A030063eFa3e2转账100个DOCOIN到

0xBCDD89F710401eDA55848C5679b53e1C4CA0331C

转账5个ether过去才能部署合约

mist 与 ethereum 有什么区别呢?mist是一个Dapp浏览器,可以运行各种Dapp,ethereum wallet 可以看做是一个钱包Dapp,运行在mist浏览器上。

ethereum 死活连不上,转账进去的以太币也没有显示收到;换用mist上的ethereum wallet用。

下午不能连上现在晚上可以连上了,

为什么编译器一直在等待编译结果呢?

简化了合约代码,编译结果出来了,但是特么gas计算没有了

pragma solidity ^0.4.16;

interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) external; }

contract TokenERC20 {
    // Public variables of the token
    string public name;
    string public symbol;
    uint8 public decimals = 18;
    // 18 decimals is the strongly suggested default, avoid changing it
    uint256 public totalSupply;

    // This creates an array with all balances
    mapping (address => uint256) public balanceOf;
    mapping (address => mapping (address => uint256)) public allowance;

    // This generates a public event on the blockchain that will notify clients
    event Transfer(address indexed from, address indexed to, uint256 value);
    
    // This generates a public event on the blockchain that will notify
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值