Skip to content

utxosAtAddress returning empty list #375

@Fiftyw3bs

Description

@Fiftyw3bs

I'm confused as to why the following occurs.

To prove ownership of a token, the validator expects that a certain token is referenced, which is implemented so:

membershipProof <- mapM (\pAddr -> provePossessionOfMemberToken' pAddr
                                                                  colonySettings
                                                                  colonyParams
                                                                  (badge ColonyOwner)
                          ) $ cpCreators colonyParams

Unit test works fine but when deployed, I get the unusual issue where utxosAtAddress returns an empty list, when the length of cpCreators colonyParams is greater than 1.

The log for when the length is 1:

[2024-12-24 08:14:14][GeniusYield.api-server][Debug][MacBook-Pro][PID 13724][ThreadId 103][tls-crdn-0.6.3-88b229c4:GeniusYield.TxBuilder.IO.Query src/GeniusYield/TxBuilder/IO/Query.hs:69:5] Querying utxo At Address: addr_test1qqrepdpn235puqu428y9w5f96gmx9pw354nc276dmcxmv9a7y7h27wv94d5fecd4y5lrun50hv7edp5tjks63wqeqatsx6e3km
[2024-12-24 08:14:15][GeniusYield.api-server.][Debug][MacBook-Pro][PID 13724][ThreadId 103][shipshift-0.2.0.0-inplace-shipshift-server-lib:Common.Context server-lib/ShipShift/Common/Context.hs:233:3] [getAssetClassTxOutRef] utxos: GYUTxOs (fromList [(GYTxOutRef (TxIn "a9bd526bf056813c1188c83c2db9824a60fc4c08397d9703035dede618048950" (TxIx 1)),(unsafeAddressFromText "addr_test1qqrepdpn235puqu428y9w5f96gmx9pw354nc276dmcxmv9a7y7h27wv94d5fecd4y5lrun50hv7edp5tjks63wqeqatsx6e3km",valueFromList [(GYLovelace,1861920),(GYToken "af3bf57161d761d212fa63bd6e40fca1e4ba92a48e92a870354feccf" "\216{\128",1)],GYOutDatumInline (GYDatum Constr 0 [Constr 0 [Constr 1 [B "\234\160p\210\223\244\ETBD\177\178\251G\203\CAN&\238\234I\173\180E\242 \CANc\SYN\249\186"],Constr 1 []],Constr 0 [Constr 1 [B "z\149a\151\ETB3m\207\248`\175\&9\b\243\148\173fcQ\189\159\248v\218Z\ETXx\211"],Constr 1 []],Constr 0 [Constr 1 [B "v\176q\136\SYN\143.\223\231\162\RS\245\f=N\193\NUL\208g\255\137\207=\132=\196f\EOT"],Constr 1 []],B "\175;\245qa\215a\210\DC2\250c\189n@\252\161\228\186\146\164\142\146\168p5O\236\207",Constr 2 []]),Nothing))])
[2024-12-24 08:14:15][GeniusYield.api-server.][Debug][MacBook-Pro][PID 13724][ThreadId 103][shipshift-0.2.0.0-inplace-shipshift-server-lib:Common.Context server-lib/ShipShift/Common/Context.hs:138:3] [provePossessionOfMemberToken'] memberTokenRef ::::::::::::::::::::::::: [GYTxOutRef (TxIn "a9bd526bf056813c1188c83c2db9824a60fc4c08397d9703035dede618048950" (TxIx 1))]

Length = 2:

[2024-12-24 08:12:26][GeniusYield.api-server][Debug][MacBook-Pro][PID 13724][ThreadId 48][tls-crdn-0.6.3-88b229c4:GeniusYield.TxBuilder.IO.Query src/GeniusYield/TxBuilder/IO/Query.hs:69:5] Querying utxo At Address: addr_test1qqrepdpn235puqu428y9w5f96gmx9pw354nc276dmcxmv9a7y7h27wv94d5fecd4y5lrun50hv7edp5tjks63wqeqatsx6e3km
[2024-12-24 08:12:26][GeniusYield.api-server.][Debug][MacBook-Pro][PID 13724][ThreadId 48][shipshift-0.2.0.0-inplace-shipshift-server-lib:Common.Context server-lib/ShipShift/Common/Context.hs:233:3] [getAssetClassTxOutRef] utxos: GYUTxOs (fromList [])
[2024-12-24 08:12:26][GeniusYield.api-server.][Debug][MacBook-Pro][PID 13724][ThreadId 48][shipshift-0.2.0.0-inplace-shipshift-server-lib:Common.Context server-lib/ShipShift/Common/Context.hs:138:3] [provePossessionOfMemberToken'] memberTokenRef ::::::::::::::::::::::::: []
[2024-12-24 08:12:26][GeniusYield.api-server][Debug][MacBook-Pro][PID 13724][ThreadId 48][tls-crdn-0.6.3-88b229c4:GeniusYield.TxBuilder.IO.Query src/GeniusYield/TxBuilder/IO/Query.hs:69:5] Querying utxo At Address: addr_test1qrzm9aeqh0t05xfsgepw6gstdyj3flxzcasqnv0sjmutrx745alqgk3dl49utf6mxxcj765x52t6djyaztpnj6sgl3xqj4slhj
[2024-12-24 08:12:28][GeniusYield.api-server.][Debug][MacBook-Pro][PID 13724][ThreadId 48][shipshift-0.2.0.0-inplace-shipshift-server-lib:Common.Context server-lib/ShipShift/Common/Context.hs:233:3] [getAssetClassTxOutRef] utxos: GYUTxOs (fromList [])
[2024-12-24 08:12:28][GeniusYield.api-server.][Debug][MacBook-Pro][PID 13724][ThreadId 48][shipshift-0.2.0.0-inplace-shipshift-server-lib:Common.Context server-lib/ShipShift/Common/Context.hs:138:3] [provePossessionOfMemberToken'] memberTokenRef ::::::::::::::::::::::::: []

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions