Skip to content

Commit

Permalink
revert gas cost
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-nguy committed Sep 26, 2023
1 parent 34a6fbf commit d5b8a37
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions x/cronos/keeper/precompiles/bank.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ func (bc *BankContract) RequiredGas(input []byte) uint64 {
}
switch method.Name {
case MintMethodName, BurnMethodName:
return 1000
return 2000
case BalanceOfMethodName:
return 1000
case TransferMethodName:
return 150000
return 2000
default:
return 0
}
Expand Down
32 changes: 16 additions & 16 deletions x/cronos/keeper/precompiles/relayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,37 +41,37 @@ func (bc *RelayerContract) RequiredGas(input []byte) uint64 {
prefix := int(binary.LittleEndian.Uint32(input[:prefixSize4Bytes]))
switch prefix {
case prefixCreateClient:
return 300000
return 1000
case prefixUpdateClient:
return 300000
return 1000
case prefixUpgradeClient:
return 300000
return 1000
case prefixSubmitMisbehaviour:
return 300000
return 1000
case prefixConnectionOpenInit:
return 300000
return 1000
case prefixConnectionOpenTry:
return 300000
return 1000
case prefixConnectionOpenAck:
return 300000
return 1000
case prefixConnectionOpenConfirm:
return 300000
return 1000
case prefixChannelOpenInit:
return 300000
return 1000
case prefixChannelOpenTry:
return 300000
return 1000
case prefixChannelOpenAck:
return 300000
return 1000
case prefixChannelOpenConfirm:
return 300000
return 1000
case prefixRecvPacket:
return 300000
return 1000
case prefixAcknowledgement:
return 300000
return 1000
case prefixTimeout:
return 300000
return 1000
case prefixTimeoutOnClose:
return 300000
return 1000
default:
return 0
}
Expand Down

0 comments on commit d5b8a37

Please sign in to comment.