the-nft-company / flow-jvm-sdk

Apache License 2.0
13 stars 25 forks source link

Transaction fails to execute when arguments contains ArrayField or PathField #21

Closed john990 closed 1 year ago

john990 commented 1 year ago

Instructions

Please fill out the template below to the best of your ability and include a label indicating which tool/service you were working with when you encountered the problem.

SDK Version:

com.nftco:flow-jvm-sdk:0.7.3

and

com.nftco:flow-jvm-sdk:0.7.1

Problem

Transaction fails to execute when arguments contains ArrayField or PathField. Transaction detail:https://flow-view-source.com/testnet/tx/42405154722416a5855bf97881dec2df93ff3cbdd1f9fbe11144e916882db6fa

Steps to Reproduce

Here is about arguments:

arg { array(swapPaths.map { string(it) }) }
arg { array(tokenOutSplit.map { ufix64(it) }) }
arg { ufix64(tokenInMax) }
arg { ufix64(deadline) }
arg { path(domain = "storage", identifier = tokenInVaultPath) }
arg { path(domain = "storage", identifier = tokenOutVaultPath) }
arg { path(domain = "public", identifier = tokenOutReceiverPath) }
arg { path(domain = "public", identifier = tokenOutBalancePath) }
image

It seems that ArrayField and PathField have problems converting json string.

Context

In our application, when I want to complete a swap transaction.

john990 commented 1 year ago

Sorry, this is a problem when we deal with transaction, there is no problem with sdk, so i close this issue. Thank you.