-
Notifications
You must be signed in to change notification settings - Fork 37
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
Code enhancements #354
Code enhancements #354
Conversation
src/smartcontracts/code.ts
Outdated
@@ -25,4 +37,12 @@ export class Code { | |||
valueOf(): Buffer { | |||
return Buffer.from(this.hex, "hex"); | |||
} | |||
|
|||
computeHash(): Hash { |
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 think this can directly be a Buffer
. At some point, we might remove the Hash
object. E.g. see the sdk-specs for transaction hash: https://github.com/multiversx/mx-sdk-specs/blob/main/sdk-core/transaction.md
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.
Updated
f4b91cd
fromHex