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

function getTransactionCost return wrong gas amount #2212

Open
nadiia-balaian opened this issue Apr 30, 2024 · 4 comments
Open

function getTransactionCost return wrong gas amount #2212

nadiia-balaian opened this issue Apr 30, 2024 · 4 comments
Assignees
Labels

Comments

@nadiia-balaian
Copy link

What version of fuels-ts are you using?

82

Steps to Reproduce

call getTransactionCost and check what this function returns

Expected Behavior

getTransactionCost returns valid amount of gas

Actual Behavior

when I'm trying to make transaction and make request to calculate gas for it getTransactionCost, I got value that is not enough to send transaction
when I try to send transaction with amount from the getTransactionCost I got error OutOfGas

so we fixed this behaviour on our side with simple workaround - we multiple amount from getTransactionCost for 2

@Torres-ssf Torres-ssf self-assigned this Apr 30, 2024
@Torres-ssf
Copy link
Contributor

Hello @nadiia-balaian . Sorry about this error.

Could you provide us with some code snippets and more context on how this error occurred?

It would help a lot if we could replicate the exact scenario in which this error is happening on your side (executing the same contract call).

@nadiia-balaian
Copy link
Author

Hello @nadiia-balaian . Sorry about this error.

Could you provide us with some code snippets and more context on how this error occurred?

It would help a lot if we could replicate the exact scenario in which this error is happening on your side (executing the same contract call).

Hello @Torres-ssf
So we tested later the same code and we found out that problem is not in this exact function.
photo_2024-05-01_11-19-42.

@Torres-ssf
Copy link
Contributor

@nadiia-balaian It seems that the given print refers to the Rust SDK.

Are you experiencing the same error (OutOfGas) while using the TS SDK when calling the function open_order ?

@nadiia-balaian
Copy link
Author

@Torres-ssf yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants