1 Star 1 Fork 0

赵明 / blockchain

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
abijson.go 346 Bytes
一键复制 编辑 原始数据 按行查看 历史
a4a881d4 提交于 2020-02-24 21:34 . add lnode.go
package main
import (
"bytes"
"encoding/json"
"fmt"
"io/ioutil"
"github.com/ethereum/go-ethereum/accounts/abi"
)
func main() {
abiJson, _ := ioutil.ReadFile("contract/o5g.abi")
reader := bytes.NewReader(abiJson)
dec := json.NewDecoder(reader)
var r abi.ABI
err := dec.Decode(&r)
if err != nil {
fmt.Println(err)
}
fmt.Println(r)
}
Go
1
https://gitee.com/thubcc/blockchain.git
git@gitee.com:thubcc/blockchain.git
thubcc
blockchain
blockchain
575f8db59f2e

搜索帮助