File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @reservoir0x/relay-protocol-sdk" ,
3- "version" : " 0.0.59 " ,
3+ "version" : " 0.0.60 " ,
44 "description" : " Relay protocol SDK" ,
55 "main" : " dist/index.js" ,
66 "types" : " dist/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -614,6 +614,10 @@ export const getDecodedWithdrawalId = (
614614 case "solana-vm" : {
615615 const coder = new BorshCoder ( RelayDepositoryIdl as Idl ) ;
616616 const encodedWithdrawal = coder . types . encode ( "TransferRequest" , {
617+ domain : Buffer . from (
618+ decodedWithdrawal . withdrawal . domain . slice ( 2 ) ,
619+ "hex"
620+ ) ,
617621 recipient : new PublicKey ( decodedWithdrawal . withdrawal . recipient ) ,
618622 token :
619623 decodedWithdrawal . withdrawal . token ===
@@ -623,6 +627,7 @@ export const getDecodedWithdrawalId = (
623627 amount : new anchor . BN ( decodedWithdrawal . withdrawal . amount ) ,
624628 nonce : new anchor . BN ( decodedWithdrawal . withdrawal . nonce ) ,
625629 expiration : new anchor . BN ( decodedWithdrawal . withdrawal . expiration ) ,
630+ vault_address : new PublicKey ( decodedWithdrawal . withdrawal . vaultAddress ) ,
626631 } ) ;
627632
628633 return (
You can’t perform that action at this time.
0 commit comments