aptos-labs / Aptos-Unity-SDK

Aptos Labs Unity SDK
Other
38 stars 12 forks source link

FundAccount should wait for txn and confirm success #66

Open banool opened 1 year ago

banool commented 1 year ago

The faucet returns a txn hash and the client must wait to see if it succeeds but FundAccount doesn't do that. The client can't wait themselves either easily because we just return ResponseInfo rather than a txn hash directly. FundAccount should use the functions to wait for the txn.

The impact of this is sometimes the SimpleNftExample fails, as will anything else that uses the faucet.

kPatch commented 1 year ago

Good catch. Let me push this in develop.