Skip to content

Commit

Permalink
Added test case for overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
AndriiDiachuk committed Oct 16, 2024
1 parent d5e4950 commit 3658c6b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions engine/access/rest/routes/transactions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@ func TestCreateTransaction(t *testing.T) {
{"reference_block_id", "-1", `{"code":400, "message":"invalid reference block ID: invalid ID format"}`},
{"reference_block_id", "", `{"code":400, "message":"reference block not provided"}`},
{"gas_limit", "-1", `{"code":400, "message":"invalid gas limit: value must be an unsigned 64 bit integer"}`},
{"gas_limit", "18446744073709551616", `{"code":400, "message":"invalid gas limit: value overflows uint64 range"}`},
{"payer", "yo", `{"code":400, "message":"invalid payer: invalid address"}`},
{"proposal_key", "yo", `{"code":400, "message":"request body contains an invalid value for the \"proposal_key\" field (at position 461)"}`},
{"authorizers", "", `{"code":400, "message":"request body contains an invalid value for the \"authorizers\" field (at position 32)"}`},
Expand Down

0 comments on commit 3658c6b

Please sign in to comment.