Skip to content
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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Add tests #61

wants to merge 1 commit into from

Conversation

MakisChristou
Copy link
Member

@MakisChristou MakisChristou commented Dec 16, 2024

This pr is for covering the new functionality added in Thor

Copy link

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@eslint/[email protected] None 0 14.9 kB eslintbot, openjsfoundation
npm/@jridgewell/[email protected] None 0 0 B
npm/[email protected] None 0 3.02 MB sharwell
npm/[email protected] None 0 0 B
npm/[email protected] None 0 12 kB ljharb
npm/[email protected] None 0 2.15 MB ai, beneb, caniuse-lite
npm/[email protected] None 0 0 B
npm/[email protected] None 0 9.17 kB ljharb
npm/[email protected] Transitive: eval, filesystem +3 4.32 MB eslintbot, openjsfoundation
npm/[email protected] eval +2 78.7 kB ljharb
npm/[email protected] None 0 32.7 kB ljharb
npm/[email protected] None 0 33.2 kB ljharb
npm/[email protected] None 0 32.3 kB mathias
npm/[email protected] None 0 16.5 kB ljharb
npm/[email protected] None 0 3.09 MB ljharb
npm/[email protected] None 0 14.7 kB ljharb
npm/[email protected] None 0 13.3 kB ljharb
npm/[email protected] None 0 14.7 kB ljharb
npm/[email protected] None 0 21.5 kB ljharb
npm/[email protected] network 0 13.9 MB jmoxey
npm/[email protected] None 0 0 B

🚮 Removed packages: npm/@eslint/[email protected], npm/@isaacs/[email protected], npm/@isaacs/[email protected], npm/@jridgewell/[email protected], npm/@npmcli/[email protected], npm/@npmcli/[email protected], npm/@pkgjs/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected]

View full report↗︎

PRIVATE_KEYS=
MNEMONIC="denial kitchen pet squirrel other broom bar gas better priority spoil cross"
NETWORK_TYPE=default-private
NETWORK_TYPE=solo
Copy link
Contributor

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) => {
Copy link
Contributor

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("")
Copy link
Contributor

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 () {
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants