-
Notifications
You must be signed in to change notification settings - Fork 163
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
feat: Valued express example #176
base: main
Are you sure you want to change the base?
Conversation
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.
Could you pls also add the folder name to the tests? I think just add call-contract-with-valued-express
would work.
…ry (from proper directory)
8bf3685
to
052d47c
Compare
@@ -1,8 +1,9 @@ | |||
//SPDX-License-Identifier: MIT | |||
// //SPDX-License-Identifier: MIT |
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.
Typo? Double comment?
@@ -0,0 +1,52 @@ | |||
# Call Contract with Valued Express | |||
|
|||
This is an example of sending an express transaction where the value is not a cross chain asset transfer using `callContractWithToken()`. Rather the value is in the `payload` of the transaction. Once the payload has been decoded and derived to a specific contract address that value can be transfered to the end receiver. |
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.
Reverse this to make the first sentence of the readme what it IS rather than what it ISN'T.
# Call Contract with Valued Express | ||
|
||
This is an example of sending an express transaction where the value is not a cross chain asset transfer using `callContractWithToken()`. Rather the value is in the `payload` of the transaction. Once the payload has been decoded and derived to a specific contract address that value can be transfered to the end receiver. | ||
|
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.
Can we add details about how it works at a high level? An overview? I hope we will also have corresponding updates in the docs?
|
||
```bash | ||
npm run deploy evm/call-contract-with-valued-express local | ||
npm run execute evm/call-contract-with-token local "Avalanche" "Fantom" 100 0xBa86A5719722B02a5D5e388999C25f3333c7A9fb |
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.
Is this right? Deploying a different contract that we execute?
added valued express executable tx. Also made a few (very minor) alterations to express token tx