@@ -183,7 +183,7 @@ export function NftCard({ nft, updateNfts, selectionState }: NftCardProps) {
183183 . transferNfts ( {
184184 nft_ids : [ nft . launcher_id ] ,
185185 address,
186- fee : toMojos ( fee , walletState . sync . unit . decimals ) ,
186+ fee : toMojos ( fee , walletState . sync . unit . precision ) ,
187187 } )
188188 . then ( setResponse )
189189 . catch ( ( err ) => {
@@ -200,7 +200,7 @@ export function NftCard({ nft, updateNfts, selectionState }: NftCardProps) {
200200 . assignNftsToDid ( {
201201 nft_ids : [ nft . launcher_id ] ,
202202 did_id : profile ,
203- fee : toMojos ( fee , walletState . sync . unit . decimals ) ,
203+ fee : toMojos ( fee , walletState . sync . unit . precision ) ,
204204 } )
205205 . then ( setResponse )
206206 . catch ( ( err ) => {
@@ -213,7 +213,7 @@ export function NftCard({ nft, updateNfts, selectionState }: NftCardProps) {
213213 const addUrlFormSchema = z . object ( {
214214 url : z . string ( ) . min ( 1 , t `URL is required` ) ,
215215 kind : z . string ( ) . min ( 1 , t `Kind is required` ) ,
216- fee : amount ( walletState . sync . unit . decimals ) . refine (
216+ fee : amount ( walletState . sync . unit . precision ) . refine (
217217 ( amount ) => BigNumber ( walletState . sync . balance ) . gte ( amount || 0 ) ,
218218 t `Not enough funds to cover the fee` ,
219219 ) ,
@@ -236,7 +236,7 @@ export function NftCard({ nft, updateNfts, selectionState }: NftCardProps) {
236236 nft_id : nft . launcher_id ,
237237 uri : values . url ,
238238 kind : values . kind as NftUriKind ,
239- fee : toMojos ( values . fee , walletState . sync . unit . decimals ) ,
239+ fee : toMojos ( values . fee , walletState . sync . unit . precision ) ,
240240 } )
241241 . then ( setResponse )
242242 . catch ( ( err ) => {
@@ -252,7 +252,7 @@ export function NftCard({ nft, updateNfts, selectionState }: NftCardProps) {
252252 . transferNfts ( {
253253 nft_ids : [ nft . launcher_id ] ,
254254 address : walletState . sync . burn_address ,
255- fee : toMojos ( fee , walletState . sync . unit . decimals ) ,
255+ fee : toMojos ( fee , walletState . sync . unit . precision ) ,
256256 } )
257257 . then ( setResponse )
258258 . catch ( ( err ) => {
0 commit comments