内容摘要
- remix发布智能合约到Ropsten测试网络
- 修改合约实例使得可以访问Ropsten
合约发布
这一阶段最重要的就是获取合约实例的ABI和合约地址地址。
图片
实例修改
部署到测试网络时编译阶段生成的ABI。复制下来创建一个json文件并保存,需要改的地方:放在对象里:
{
"abi":[
{
"inputs": [
{
"internalType": "string",
"name": "AuthenticationInfomation",
"type": "string"
},
{
"internalType": "uint256",
"name": "BallotID",
"type": "uint256"
}
],