-
Notifications
You must be signed in to change notification settings - Fork 45
support for guarded transactions for v1 relayed tx #251
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
Conversation
| { | ||
| "name": "@multiversx/sdk-core", | ||
| "version": "12.0.1", | ||
| "version": "12.0.1-alpha.1", |
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.
Normally, 12.0.1-alpha.x < 12.0.1, but in this case we can indeed use -alpha.1, because there's no 12.0.1 published.
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.
👍
|
|
||
| describe("test relayed v1 transaction builder", function () { | ||
| let alice: TestWallet, bob: TestWallet; | ||
| let alice: TestWallet, bob: TestWallet, eve: TestWallet; |
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.
Usually, eve has a "bad name" (as in eavesdropping) - but here it seems to be the guardian. Perhaps we should find a better name?
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.
changed it to grace
src/relayedTransactionV1Builder.ts
Outdated
| relayerAddress: IAddress | undefined; | ||
| relayerNonce: INonce | undefined; | ||
| netConfig: INetworkConfig | undefined; | ||
| relayTransactionOptions: TransactionOptions | undefined; |
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.
Below I see the prefix relayed. Which one should be here?
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.
changed to relayed
| receiver: Address.fromBech32("erd1qqqqqqqqqqqqqqqpqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqzllls8a5w6u"), | ||
| gasLimit: 60000000, | ||
| chainID: networkConfig.ChainID, | ||
| data: new TransactionPayload("getContractConfig"), |
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.
Perhaps use a simple TX instead? Here - the receiver is a contract and the data is the name of a contract query function, is this mandatory for the test?
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.
ok, got it
No description provided.