Skip to content

Commit

Permalink
MAT-1249 - datatype fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mankenavenkatesh committed May 2, 2020
1 parent c567d4b commit 4e106f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions staking/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func SendValidatorJoinTx(cdc *codec.Codec) *cobra.Command {
abiObject := &contractCallerObj.StakingInfoABI
eventName := "Staked"
event := new(stakinginfo.StakinginfoStaked)
var logIndex uint
var logIndex uint64
found := false
for _, vLog := range receipt.Logs {
topic := vLog.Topics[0].Bytes()
Expand All @@ -111,7 +111,7 @@ func SendValidatorJoinTx(cdc *codec.Codec) *cobra.Command {
return err
}

logIndex = vLog.Index
logIndex = uint64(vLog.Index)
found = true
break
}
Expand All @@ -133,7 +133,7 @@ func SendValidatorJoinTx(cdc *codec.Codec) *cobra.Command {
amount,
pubkey,
hmTypes.HexToHeimdallHash(txhash),
uint64(logIndex),
logIndex,
viper.GetUint64(FlagBlockNumber),
)

Expand Down

0 comments on commit 4e106f3

Please sign in to comment.