Skip to content

Commit

Permalink
fix owasm test gas used
Browse files Browse the repository at this point in the history
  • Loading branch information
slandymani committed Jan 10, 2024
1 parent 3de3c28 commit 64d6be8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions x/oracle/keeper/owasm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func TestPrepareRequestSuccessBasic(t *testing.T) {
sdk.NewAttribute(oracletypes.AttributeKeyCalldata, hex.EncodeToString(BasicCalldata)),
sdk.NewAttribute(oracletypes.AttributeKeyAskCount, "1"),
sdk.NewAttribute(oracletypes.AttributeKeyMinCount, "1"),
sdk.NewAttribute(oracletypes.AttributeKeyGasUsed, "3089"), // TODO: might change
sdk.NewAttribute(oracletypes.AttributeKeyGasUsed, "5294700000"), // TODO: might change
sdk.NewAttribute(oracletypes.AttributeKeyValidator, testapp.Validators[0].ValAddress.String()),
), events[12])

Expand Down Expand Up @@ -394,8 +394,8 @@ func TestResolveRequestSuccess(t *testing.T) {
oracletypes.EventTypeResolve,
sdk.NewAttribute(oracletypes.AttributeKeyID, "42"),
sdk.NewAttribute(oracletypes.AttributeKeyResolveStatus, "1"),
sdk.NewAttribute(oracletypes.AttributeKeyResult, "62656562"), // hex of "beeb"
sdk.NewAttribute(oracletypes.AttributeKeyGasUsed, "1028"), // TODO might change
sdk.NewAttribute(oracletypes.AttributeKeyResult, "62656562"), // hex of "beeb"
sdk.NewAttribute(oracletypes.AttributeKeyGasUsed, "2485000000"), // TODO might change
)}, ctx.EventManager().Events())
}

Expand Down Expand Up @@ -441,7 +441,7 @@ func TestResolveRequestSuccessComplex(t *testing.T) {
sdk.NewAttribute(oracletypes.AttributeKeyID, "42"),
sdk.NewAttribute(oracletypes.AttributeKeyResolveStatus, "1"),
sdk.NewAttribute(oracletypes.AttributeKeyResult, "000000206265656264317631626565626431763262656562643276316265656264327632"),
sdk.NewAttribute(oracletypes.AttributeKeyGasUsed, "13634"), // todo might change
sdk.NewAttribute(oracletypes.AttributeKeyGasUsed, "32742000000"), // todo might change
)}, ctx.EventManager().Events())
}

Expand Down

0 comments on commit 64d6be8

Please sign in to comment.