-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add tests #61
base: main
Are you sure you want to change the base?
Add tests #61
Conversation
PRIVATE_KEYS= | ||
MNEMONIC="denial kitchen pet squirrel other broom bar gas better priority spoil cross" | ||
NETWORK_TYPE=default-private | ||
NETWORK_TYPE=solo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose we dont need to push this one, as it is just local config
@@ -154,6 +154,30 @@ class ThorWallet { | |||
} | |||
} | |||
|
|||
buildCallTransaction = async (clauses, options) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to have specific method for that or we can enhance buildTransaction one ?
expect(success).toBeTrue() | ||
expect(httpCode).toBe(200) | ||
expect(body?.txID).toBeDefined() | ||
expect(body?.vmError).not.toBe("") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wonder if we can add specific error we look for ? as this just checks it is not empty
) | ||
}) | ||
|
||
it.e2eTest('should simulate vet transfer', 'all', async function () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we can add: mixed clauses (like contract call + vet transfer), tx delegation and not enough gas cases. As this should follow the same validation rules
This pr is for covering the new functionality added in Thor