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

Fix pending result for receipts #81

Merged
merged 4 commits into from
Oct 1, 2019
Merged

Fix pending result for receipts #81

merged 4 commits into from
Oct 1, 2019

Conversation

evgenykuzyakov
Copy link
Contributor

Return status for legacy results.
Update Pending to Unknown (staging nearcore PR will change it).
Merge @mikhailOK staging change for staging support.

@@ -145,7 +145,7 @@ describe('with deploy contract', () => {
expect(logs.length).toBe(3);
expect(logs[0]).toEqual(`[${contractId}]: LOG: log before assert`);
expect(logs[1]).toMatch(new RegExp(`^\\[${contractId}\\]: ABORT: "expected to fail" filename: "assembly/main.ts" line: \\d+ col: \\d+$`));
expect(logs[2]).toEqual(`[${contractId}]: Runtime error: wasm async call execution failed with error: WasmerCallError("Smart contract has explicitly invoked \`panic\`.")`);
// expect(logs[2]).toEqual(`[${contractId}]: Runtime error: wasm async call execution failed with error: WasmerCallError("Smart contract has explicitly invoked \`panic\`.")`);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

accidental?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's @mikhailOK change to support new error format in staging, until we move towards proper error handling.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@evgenykuzyakov @mikhailOK probably good idea to add TODO with GH issue / WIP PR link so it doesn't get lost

@evgenykuzyakov evgenykuzyakov merged commit ac4279c into master Oct 1, 2019
@evgenykuzyakov evgenykuzyakov deleted the fix-pending branch October 1, 2019 18:37
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.

3 participants