@@ -914,7 +914,7 @@ func claimAsset(cmd *cobra.Command) error {
914914 }
915915 defer client .Close ()
916916 // Initialize and assign variables required to send transaction payload
917- bridgeV2 , toAddress , auth , err := generateTransactionPayload (cmd .Context (), client , bridgeAddress , privateKey , gasLimit , destinationAddress , chainID )
917+ bridgeV2 , _ , auth , err := generateTransactionPayload (cmd .Context (), client , bridgeAddress , privateKey , gasLimit , destinationAddress , chainID )
918918 if err != nil {
919919 log .Error ().Err (err ).Msg ("error generating transaction payload" )
920920 return err
@@ -939,7 +939,7 @@ func claimAsset(cmd *cobra.Command) error {
939939 return err
940940 }
941941
942- claimTxn , err := bridgeV2 .ClaimAsset (auth , bridge_service .HashArrayToBytesArray (proof .MerkleProof ), bridge_service .HashArrayToBytesArray (proof .RollupMerkleProof ), deposit .GlobalIndex , * proof .MainExitRoot , * proof .RollupExitRoot , deposit .OrigNet , deposit .OrigAddr , deposit .DestNet , toAddress , deposit .Amount , deposit .Metadata )
942+ claimTxn , err := bridgeV2 .ClaimAsset (auth , bridge_service .HashArrayToBytesArray (proof .MerkleProof ), bridge_service .HashArrayToBytesArray (proof .RollupMerkleProof ), deposit .GlobalIndex , * proof .MainExitRoot , * proof .RollupExitRoot , deposit .OrigNet , deposit .OrigAddr , deposit .DestNet , deposit . DestAddr , deposit .Amount , deposit .Metadata )
943943 if err = logAndReturnJsonError (cmd .Context (), client , claimTxn , auth , err ); err != nil {
944944 return err
945945 }
@@ -969,7 +969,7 @@ func claimMessage(cmd *cobra.Command) error {
969969 }
970970 defer client .Close ()
971971 // Initialize and assign variables required to send transaction payload
972- bridgeV2 , toAddress , auth , err := generateTransactionPayload (cmd .Context (), client , bridgeAddress , privateKey , gasLimit , destinationAddress , chainID )
972+ bridgeV2 , _ , auth , err := generateTransactionPayload (cmd .Context (), client , bridgeAddress , privateKey , gasLimit , destinationAddress , chainID )
973973 if err != nil {
974974 log .Error ().Err (err ).Msg ("error generating transaction payload" )
975975 return err
@@ -994,7 +994,7 @@ func claimMessage(cmd *cobra.Command) error {
994994 return err
995995 }
996996
997- claimTxn , err := bridgeV2 .ClaimMessage (auth , bridge_service .HashArrayToBytesArray (proof .MerkleProof ), bridge_service .HashArrayToBytesArray (proof .RollupMerkleProof ), deposit .GlobalIndex , * proof .MainExitRoot , * proof .RollupExitRoot , deposit .OrigNet , deposit .OrigAddr , deposit .DestNet , toAddress , deposit .Amount , deposit .Metadata )
997+ claimTxn , err := bridgeV2 .ClaimMessage (auth , bridge_service .HashArrayToBytesArray (proof .MerkleProof ), bridge_service .HashArrayToBytesArray (proof .RollupMerkleProof ), deposit .GlobalIndex , * proof .MainExitRoot , * proof .RollupExitRoot , deposit .OrigNet , deposit .OrigAddr , deposit .DestNet , deposit . DestAddr , deposit .Amount , deposit .Metadata )
998998 if err = logAndReturnJsonError (cmd .Context (), client , claimTxn , auth , err ); err != nil {
999999 return err
10001000 }
0 commit comments