Skip to content

Commit

Permalink
update expected tipping tx json (test private key generation changed)
Browse files Browse the repository at this point in the history
  • Loading branch information
magicxyyz committed Oct 16, 2023
1 parent e1e396f commit 5127dbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system_tests/tippingtx_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func TestTippingTxJsonMarshalling(t *testing.T) {
tippingTx := info.SignTxAs("tester", tipping)
tippingJson, err := tippingTx.MarshalJSON()
testhelpers.RequireImpl(t, err)
expectedJson := []byte(`{"type":"0x63","chainId":"0x539","nonce":"0x2c","to":"0x00000000000000000000000000000000deadbeef","gas":"0x33450","gasPrice":"0x0","maxPriorityFeePerGas":"0x7","maxFeePerGas":"0xd","value":"0x8","input":"0xdeadbeef","accessList":[{"address":"0x00000000000000000000000000000000deadbeef","storageKeys":["0x0000000000000000000000000000000000000000000000000000000000000000"]}],"v":"0x0","r":"0x61397aeca5e1059cda7c7ae10bf7fbf828fab81015c9eed4174d175406c1e6b6","s":"0xb56b52f6d874105b26cc19c6eaca899b5e26f1649845b774a32c5f8266a8d09","subtype":"0x1","hash":"0x904e53f088edb34cd09a10fbfc54f809ee840873fb262fd35a6d2434da24bae7"}`)
expectedJson := []byte(`{"type":"0x63","chainId":"0x539","nonce":"0x2c","to":"0x00000000000000000000000000000000deadbeef","gas":"0x33450","gasPrice":"0x0","maxPriorityFeePerGas":"0x7","maxFeePerGas":"0xd","value":"0x8","input":"0xdeadbeef","accessList":[{"address":"0x00000000000000000000000000000000deadbeef","storageKeys":["0x0000000000000000000000000000000000000000000000000000000000000000"]}],"v":"0x0","r":"0xa1601a4ded28737bc73dd6c9fc65e27926c5ba50fbae447f4b8bf2c8319ad084","s":"0x2c2fe6def81bad41bdf4163fef307d98466dadb2c83531dfd6330aaa42fb86a1","subtype":"0x1","hash":"0x9fb176470d1bd930e9b612a7e890eb006fe92b600f9b3abe52c3fa6225f89ba4"}`)
if !bytes.Equal(tippingJson, expectedJson) {
testhelpers.FailImpl(t, "Unexpected json result, want:\n\t", string(expectedJson), "\ngot:\n\t", string(tippingJson))
}
Expand Down

0 comments on commit 5127dbd

Please sign in to comment.