Skip to content

Commit 29938cf

Browse files
authored
Use correct cadence type in cast (#96)
1 parent 3818570 commit 29938cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/construction_service.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1428,10 +1428,10 @@ func decodeTransferOps(txn *entities.Transaction, proxy bool, signed bool) (*typ
14281428
errInvalidTransactionPayload, "unable to decode amount transaction arg: %s", err,
14291429
)
14301430
}
1431-
amount, ok := raw.(cadence.UInt64)
1431+
amount, ok := raw.(cadence.UFix64)
14321432
if !ok {
14331433
return nil, wrapErrorf(
1434-
errInvalidTransactionPayload, "unable to convert amount transaction arg to uint64",
1434+
errInvalidTransactionPayload, "unable to convert amount transaction arg to ufix64",
14351435
)
14361436
}
14371437
if proxy {

0 commit comments

Comments
 (0)