Skip to content

SmartContract methods for UnityAPI#597

Merged
noescape00 merged 4 commits intostratisproject:masterfrom
noescape00:unitySC
Jun 30, 2021
Merged

SmartContract methods for UnityAPI#597
noescape00 merged 4 commits intostratisproject:masterfrom
noescape00:unitySC

Conversation

@noescape00
Copy link
Contributor

No description provided.

receiptResponse = new ReceiptResponse(receipt, logResponses, this.network);
}

return receiptResponse;
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks good Ivan, I would just add this controller method and the one below in a try catch, like we do in all the other controller methods. Just so that there is some consistency? WDYT?

Example:

https://github.com/stratisproject/StratisFullNode/blob/master/src/Stratis.Bitcoin.Features.BlockStore/Controllers/BlockStoreController.cs#L100

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There is no need for try catch since if there is an exception it will be seen in node's logs.
Also we can't use same error handling since controller's methods return explicit types, not json like our other controllers.

Copy link
Contributor

@fassadlr fassadlr left a comment

Choose a reason for hiding this comment

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

Just add the try catch as in the comment :)

@noescape00 noescape00 merged commit 9381762 into stratisproject:master Jun 30, 2021
fassadlr pushed a commit that referenced this pull request Aug 9, 2021
* added sc related api methods

* fix

* explicit return types

* codestyle
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