-
Notifications
You must be signed in to change notification settings - Fork 41
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
[ENG-4599] Tim/add send sip10 and reorganise #162
Conversation
✅ Deploy Preview for sats-connect ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@aryzing I'm not sure if I have the encoding right here to send 100LEO to an address. any ideas? |
const response = await Wallet.request('stx_callContract', { | ||
contract: form.contract, | ||
functionName: 'transfer', | ||
arguments: [ | ||
uintCV(+form.amount), | ||
standardPrincipalCV(stxAddressInfo?.[0].address), | ||
standardPrincipalCV(form.address), | ||
noneCV(), | ||
//form.memo ? someCV(bufferCV(Buffer.from(form.memo))) : noneCV(), | ||
].map((arg) => cvToString(arg)), | ||
}); |
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.
@m-aboelenein @aryzing any ideas on whether there's something causing the error 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.
In the map, try with cvToHex()
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.
nice! thank you, i'll try that and make a note to update the docs https://docs.xverse.app/sats-connect/stacks-methods/stx_callcontract
actually a lot of the stx docs seem to be incomplete
|
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.
tested working
context: https://linear.app/xverseapp/issue/ENG-4599/look-into-post-conditions-that-were-constructing-these-properly-tim
changes: