-
Notifications
You must be signed in to change notification settings - Fork 149
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: sip30 stx call contract #6060
base: dev
Are you sure you want to change the base?
Conversation
cfbdac1
to
776025f
Compare
d96b11b
to
c8db26a
Compare
result: { | ||
txid: '', // Broadcast transaction? | ||
transaction: signedTransaction.serialize(), | ||
} as any, // Fix this |
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.
Trying to figure out why there is a type error here on txid
.
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.
Speaking with Jannik, by this helper method should broadcast. If apps want a tx that isn't broadcast, they should use stx_signTransaction
2905ef5
to
4db5dc9
Compare
export function getStxDefaultMessageParamsToTransactionRequest(params: RpcParameter) { | ||
if (isUndefined(params)) return; | ||
|
||
const transactionRequest = {} as any; |
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 this be a Partial<ActualType>
?
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.
Great work @fbwoolf—think we need to add the broadcast flow too though
4db5dc9
to
cc94ead
Compare
if (isCancelTransaction) return toast.success('Transaction cancelled successfully'); | ||
if (isIncreaseFeeTransaction) return toast.success('Fee increased successfully'); | ||
return; |
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.
Not necessary to refactor now, but ideally these actions would be passed in to the hook
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.
Yep, agree, this hook is hard to work with atm.
This PR adds SIP-30
stx_callContract
.