Interacting with Ethereum Smart Contracts using Go

in #ethereum7 years ago

1.JPG
2.JPG
3.JPG
4.JPG
5.JPG

Now we can deploy the contract using the generated DeployWinnerTakesAll method:

addr,_,contract,err:=DeployWinnerTakesAll(auth,sim,big.NewInt(10),big.NewInt(time.Now().Add(2time.Minute).Unix()),big.NewInt(time.Now().Add(5time.Minute).Unix()))
if err != nil {
log.Fatalf("could not deploy contract: %v", err)
}

6.JPG
7.JPG
8.JPG
9.JPG
10.JPG

Coin Marketplace

STEEM 0.16
TRX 0.17
JST 0.029
BTC 69393.72
ETH 2488.25
USDT 1.00
SBD 2.53