Skip to content

Commit

Permalink
Merge pull request #1688 from SolarRepublic/fix/env-txhash
Browse files Browse the repository at this point in the history
fix: make txhash in env uppercase
  • Loading branch information
iKapitonau authored Nov 29, 2024
2 parents 0617649 + 437967f commit 96e5743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/compute/internal/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func NewEnv(ctx sdk.Context, creator sdk.AccAddress, deposit sdk.Coins, contract

if txCounter, ok := TXCounter(ctx); ok {
txhashBz := sha256.Sum256(ctx.TxBytes())
txhash := hex.EncodeToString(txhashBz[:])
txhash := strings.ToUpper(hex.EncodeToString(txhashBz[:]))

env.Transaction = &wasmTypes.TransactionInfo{
Index: txCounter,
Expand Down

0 comments on commit 96e5743

Please sign in to comment.