Skip to content

Commit

Permalink
Amend the accounts test, change the required contract size limit
Browse files Browse the repository at this point in the history
  • Loading branch information
nozim committed Sep 26, 2023
1 parent 9e0a36c commit a82afb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/accounts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func TestCreateAccount(t *testing.T) {
argumentsSize += len(argument)
}
require.Less(t, txSize, 1000, "The create account script should not grow over 1kB.")
require.Less(t, argumentsSize, len(testContractBody)*2+500,
require.Less(t, argumentsSize, len(testContractBody)+500,
"The create account argument size should not grow over "+
"2 times the contract code (converted to hex) + 500 bytes of extra data.")
})
Expand Down

0 comments on commit a82afb2

Please sign in to comment.