Skip to content

final tx in my series of tx for a rain game doth not want to go thru #16

@staccDOTsol

Description

@staccDOTsol

I believe @pit-trash-king has helped me with this ages ago when I was beginning to understand rain,

@long-banana I summon you in case you have a minute to teach me what I am not getting here.

This is my backend leaving a match, that the player has lost:

https://explorer.solana.com/tx/WGAJ1ZYKoW61hNCiwfnPnDZdKb8yd1rHks1siTZDHN3yahXkMwM4SZZVu5EfMwrrhyZ7FTvmVEvMWZnVhvdnUu8?cluster=devnet

It works! Rejoice!

This is my frontend failing to leave:

https://explorer.solana.com/tx/41WHkJZWnLtzEyquD4NkJsjgChafeGyUzvdo8XS1VLL3s5wLCyuGNj96Ar4spM137hWZcnJcyDyxJC6eheKzS3Ws?cluster=devnet

I think I have somehow messed up where pit told me how to do this properly, am I required to sned the whole amounts out of the match? If so, why does it let my backend leave and not the player?

Any and all help is appreciated here fellas

here is the match:

{
"winOracle": null,
"matchState": {
"initialized": true
},
"winOracleCooldown": 0,
"space": 500,
"minimumAllowedEntryTime": null,
"tokenEntryValidation": null,
"authority": "JARehRjGUkkEShpjzfuV4ERJS25j8XhamL776FAktNGm",
"leaveAllowed": true,
"joinAllowedDuringStart": false,
"oracleState": {
"seed": "Ahpx7NtTgRPpPcf15HEABH8HKFNxzotH2q6s3bJsDPJM",
"authority": "JARehRjGUkkEShpjzfuV4ERJS25j8XhamL776FAktNGm",
"finalized": false,
"tokenTransferRoot": null,
"tokenTransfers": []
},
"tokensToJoin": [
{
"mint": "openDKyuDPS6Ak1BuD3JtvkQGV3tzCxjpHUfe1mdC79",
"amount": 1000000,
"sourceType": 1,
"index": 1,
"validationProgram": "nameAxQRRBnd4kLfsVoZBBXfrByZdZTkh8mULLxLyqV"
}
]
}

matches-cli show_match -k ~/.config/solana/id.json -e devnet -l debug -cp abla.json
wallet public key: JARehRjGUkkEShpjzfuV4ERJS25j8XhamL776FAktNGm
Match iNPbTEDySwfHn8CT7k4r5eh7YH1qNLmzfrMn26HoXAP
Namespaces: Not Set
State: finalized
Win Oracle: PublicKey {
_bn: <BN: aa588369a10d9b04a64efd8e208e35554043d510ebb9470738d6a8ac8c309d4c>
}
Oracle Cooldown: 0
Last Oracle Check: 2022-07-08T20:18:32.000Z
Oracle Finalized: true
Oracle Token Transfer Root: Unset
Oracle Token Transfers:
--> From: Ff7EmnYRhGMBjvQ91mkKWQzfzWTWZVdfECMZdFZQv5Xw
--> To: JARehRjGUkkEShpjzfuV4ERJS25j8XhamL776FAktNGm
--> Transfer Type: undefined
--> Mint: openDKyuDPS6Ak1BuD3JtvkQGV3tzCxjpHUfe1mdC79
--> Amount: 1000000
--> From: JARehRjGUkkEShpjzfuV4ERJS25j8XhamL776FAktNGm
--> To: Ff7EmnYRhGMBjvQ91mkKWQzfzWTWZVdfECMZdFZQv5Xw
--> Transfer Type: undefined
--> Mint: openDKyuDPS6Ak1BuD3JtvkQGV3tzCxjpHUfe1mdC79
--> Amount: 0
Authority: JARehRjGUkkEShpjzfuV4ERJS25j8XhamL776FAktNGm
Leaving Match Allowed?: Yes
Joining Match Allowed?: No
Minimum Allowed Entry Time: Unset
Current token transfer index: 1
Token Types Added: 2
Token Types Removed: 1
Token Entry Validations:
Token Entry Validation Root: Unset
jarettdunn@jaretts-MacBook-Air ~ %

I redact my previous statement; with leave_allowed it should let us leave even if not paid out :/

pending this works I'll put the game live on autist.design remove some links and gib the pandas the ability to use this token: https://app.strataprotocol.com/swap/2PAGcvionSsRsYv8vbbxbSfiNa8THnGT81q11vHU3faP

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions