@@ -74,66 +74,9 @@ const DepositPaymentButton: React.FC = () => {
74
74
}
75
75
} , [ allowance , transactionValue ] ) ;
76
76
77
- const templateData = useMemo (
78
- ( ) =>
79
- JSON . stringify ( {
80
- $schema : "../NewDisputeTemplate.schema.json" ,
81
- title : escrowTitle ,
82
- description : deliverableText ,
83
- question : "Which party abided by the terms of the contract?" ,
84
- answers : [
85
- {
86
- title : "Refund the Buyer" ,
87
- description : "Select this to return the funds to the Buyer." ,
88
- } ,
89
- {
90
- title : "Pay the Seller" ,
91
- description : "Select this to release the funds to the Seller." ,
92
- } ,
93
- ] ,
94
- policyURI : "ipfs://TODO" ,
95
- attachment : {
96
- label : "Transaction Terms" ,
97
- uri : extraDescriptionUri ,
98
- } ,
99
- frontendUrl : `https://escrow-v2.kleros.builders/#/transactions/%s` ,
100
- arbitrableChainID : "421614" ,
101
- arbitrableAddress : "0x250AB0477346aDFC010585b58FbF61cff1d8f3ea" ,
102
- arbitratorChainID : "421614" ,
103
- arbitratorAddress : "0xA54e7A16d7460e38a8F324eF46782FB520d58CE8" ,
104
- metadata : {
105
- buyer : address ,
106
- seller : sellerAddress ,
107
- amount : sendingQuantity ,
108
- token : isNativeTransaction ? "native" : sendingToken ?. address ,
109
- deadline : deadlineTimestamp . toString ( ) ,
110
- transactionUri : transactionUri ,
111
- } ,
112
- category : "Escrow" ,
113
- specification : "KIPXXX" ,
114
- aliases : {
115
- Buyer : address ,
116
- Seller : sellerAddress ,
117
- } ,
118
- version : "1.0" ,
119
- } ) ,
120
- [
121
- escrowTitle ,
122
- deliverableText ,
123
- extraDescriptionUri ,
124
- sendingQuantity ,
125
- sellerAddress ,
126
- address ,
127
- isNativeTransaction ,
128
- sendingToken ?. address ,
129
- deadlineTimestamp ,
130
- transactionUri ,
131
- ]
132
- ) ;
133
-
134
77
const { config : createNativeTransactionConfig } = usePrepareEscrowUniversalCreateNativeTransaction ( {
135
78
enabled : isNativeTransaction && ethAddressPattern . test ( finalRecipientAddress ) ,
136
- args : [ deadlineTimestamp , transactionUri , finalRecipientAddress , templateData , "" ] ,
79
+ args : [ deadlineTimestamp , transactionUri , finalRecipientAddress ] ,
137
80
value : transactionValue ,
138
81
} ) ;
139
82
@@ -149,8 +92,6 @@ const DepositPaymentButton: React.FC = () => {
149
92
deadlineTimestamp ,
150
93
transactionUri ,
151
94
finalRecipientAddress ,
152
- templateData ,
153
- "" ,
154
95
] ,
155
96
} ) ;
156
97
0 commit comments