Interacting with Ethereum Smart Contracts using Go

in #ethereum8 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.09
TRX 0.29
JST 0.036
BTC 102378.93
ETH 3408.36
USDT 1.00
SBD 0.56