Replies: 1 comment 5 replies
-
Hi, to use a randomness entry function, the dapp should manually set
Here is an example of how a dapp can define the
Note, the wallet itself should support and respect the given |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Discord user ID
dawkaxx
Describe your question in detail.
I'm using the new native on chain randomness on testnet. My function involving randomness is noted
#[randomness] entry fun play( player: &signer, ) ..
I can call it succesfully from the SDK (signing from the SDK) but it doesn't work with the wallet adapter (trying to sign from Pontem/Petra). It works for functions not involving randomness so I guess it has to do with the wallet supports.
With Petra the error is :
generic error
. For Pontem, nothing pops upThanks for the help
LFM
What error, if any, are you getting?
Generic error / no pop up from the wallet
What have you tried or looked at? Or how can we reproduce the error?
Described above
Which operating system are you using?
Linux (Ubuntu, Fedora, Windows WSL, etc.)
Which SDK or tool are you using? (if any)
TypeScript SDK
Describe your environment or tooling in detail
It works with the typescript sdk but not the typescript wallet adapter from a react app
Beta Was this translation helpful? Give feedback.
All reactions