Skip to content

Commit

Permalink
Return check-summed variant for deployed contract address
Browse files Browse the repository at this point in the history
  • Loading branch information
m-Peter committed Feb 22, 2024
1 parent de18d66 commit 1f1e53a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fvm/evm/types/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func (p *TransactionExecutedPayload) CadenceEvent() (cadence.Event, error) {
cadence.String(p.Result.VMErrorString()),
cadence.NewUInt8(p.Result.TxType),
cadence.NewUInt64(p.Result.GasConsumed),
cadence.String(hex.EncodeToString(p.Result.DeployedContractAddress.Bytes())),
cadence.String(p.Result.DeployedContractAddress.ToCommon().Hex()),
cadence.String(hex.EncodeToString(p.Result.ReturnedValue)),
cadence.String(hex.EncodeToString(encodedLogs)),
},
Expand Down
4 changes: 2 additions & 2 deletions fvm/evm/types/events_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func TestEVMTransactionExecutedEventCCFEncodingDecoding(t *testing.T) {
assert.Equal(
t,
tep.DeployedContractAddress,
hex.EncodeToString(txResult.DeployedContractAddress.Bytes()),
txResult.DeployedContractAddress.ToCommon().Hex(),
)
assert.Equal(t, tep.ReturnedValue, data)

Expand Down Expand Up @@ -207,7 +207,7 @@ func TestEVMTransactionExecutedEventCCFEncodingDecoding(t *testing.T) {
assert.Equal(
t,
tep.DeployedContractAddress,
hex.EncodeToString(txResult.DeployedContractAddress.Bytes()),
txResult.DeployedContractAddress.ToCommon().Hex(),
)
assert.Equal(t, tep.ReturnedValue, data)

Expand Down

0 comments on commit 1f1e53a

Please sign in to comment.