Merge pull request #798 from harmony-one/rj_cello

Support multi-shard contract call
pull/801/head
Rongjian Lan 6 years ago committed by GitHub
commit e9c754a30c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      node/contract.go
  2. 6
      node/demo_contract.go

@ -96,7 +96,7 @@ func (node *Node) QueryStakeInfo() *structs.StakeInfoReturnValue {
tx := types.NewTransaction(
state.GetNonce(deployerAddress),
stakingContractAddress,
0,
node.NodeConfig.ShardID,
nil,
math.MaxUint64,
nil,

@ -73,7 +73,7 @@ func (node *Node) CreateTransactionForEnterMethod(amount int64, priKey string) e
tx := types.NewTransaction(
nonce,
toAddress,
0,
node.NodeConfig.ShardID,
Amount,
params.TxGas*10,
nil,
@ -141,7 +141,7 @@ func (node *Node) GetResult(priKey string) (players []string, balances []*big.In
tx := types.NewTransaction(
nonce,
demoContractAddress,
0,
node.NodeConfig.ShardID,
nil,
math.MaxUint64,
nil,
@ -192,7 +192,7 @@ func (node *Node) CreateTransactionForPickWinner() error {
tx := types.NewTransaction(
nonce,
toAddress,
0,
node.NodeConfig.ShardID,
Amount,
params.TxGas*1000,
nil,

Loading…
Cancel
Save