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

Smart contract can't get less than ED via payable function #763

Closed
Tracked by #676
tonycdot opened this issue Sep 4, 2023 · 1 comment
Closed
Tracked by #676

Smart contract can't get less than ED via payable function #763

tonycdot opened this issue Sep 4, 2023 · 1 comment
Assignees
Labels
bug Something isn't working evm

Comments

@tonycdot
Copy link
Contributor

tonycdot commented Sep 4, 2023

SC:

// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.17;

contract NullTest {
    function a() payable external {}
}

This contract had 0 on balance. Sending 199 Wei results in error:

Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending?
Returned error: {"jsonrpc":"2.0","error":"evm error: OutOfFund","id":6275260900206630}

After sending 1 eHMND to SC, I was able to send any value without an error.

SC deployed at 0x8bCe54ff8aB45CB075b044AE117b8fD91F9351aB.
Chain - humanode:it6.
SC balance is 1,000,000,000,000,000,100 - 1 eHMND + 100 Wei.

@MOZGIII

@tonycdot tonycdot added the bug Something isn't working label Sep 4, 2023
@MOZGIII MOZGIII added the evm label Sep 17, 2023
@MOZGIII
Copy link
Contributor

MOZGIII commented Oct 1, 2023

This was fixed by changing EVM ED to 1.

I have verified this is working properly now.

@MOZGIII MOZGIII closed this as completed Oct 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working evm
Development

No branches or pull requests

3 participants