Skip to content

Commit

Permalink
update cross chain event
Browse files Browse the repository at this point in the history
  • Loading branch information
yutianwu committed Jan 16, 2023
1 parent e033324 commit 4108ea4
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 33 deletions.
2 changes: 1 addition & 1 deletion proto/cosmos/crosschain/v1/event.proto
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ message EventCrossChain {
uint64 sequence = 4;
uint32 package_type = 5;
uint64 timestamp = 6;
bytes package_load = 7;
string package_load = 7;
string relayer_fee = 8;
string ack_relayer_fee = 9;
}
3 changes: 2 additions & 1 deletion x/crosschain/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package keeper

import (
"encoding/binary"
"encoding/hex"
"fmt"
"math/big"

Expand Down Expand Up @@ -112,7 +113,7 @@ func (k Keeper) CreateRawIBCPackageWithFee(ctx sdk.Context, channelID sdk.Channe
Sequence: sequence,
PackageType: uint32(packageType),
Timestamp: uint64(ctx.BlockTime().Unix()),
PackageLoad: packageLoad,
PackageLoad: hex.EncodeToString(packageLoad),
RelayerFee: relayerFee.String(),
AckRelayerFee: ackRelayerFee.String(),
})
Expand Down
60 changes: 29 additions & 31 deletions x/crosschain/types/event.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4108ea4

Please sign in to comment.