Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support of randomSeed on blockhain entity level #47

Open
a-bahdanau opened this issue May 14, 2024 · 0 comments
Open

Add support of randomSeed on blockhain entity level #47

a-bahdanau opened this issue May 14, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@a-bahdanau
Copy link
Contributor

a-bahdanau commented May 14, 2024

Is your feature request related to a problem? Please describe.
There is a missing API that would be helpful. Provide way to set randomSeed to make RAND work properly in transactions.

Now that can be done this way only

const res = await blockchain.runGetMethod(example.address,
        'get_method',
        [],
        { randomSeed: randomBytes(32) } // randomSeed can be specified only if calling blockchain.runGetMethod or similar...
);
const number = res.stackReader.readNumber();

Describe the solution you'd like
Provide a setter randomSeed that would affect transaction result

@a-bahdanau a-bahdanau added the enhancement New feature or request label May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant