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

sendTransaction function not defined #13

Open
biswa-d opened this issue Jan 8, 2023 · 2 comments
Open

sendTransaction function not defined #13

biswa-d opened this issue Jan 8, 2023 · 2 comments

Comments

@biswa-d
Copy link

biswa-d commented Jan 8, 2023

While running the npx hardhat test command after adding the 'Sale' section in the test module, I am getting an error and I think because there is a sendTransation function missing in the escrow.sol code while we are trying to call that function. I checked the final code and it is absent there as well. I am following through the video tutorial and it is working fine in the trutorial.

What am I doing wrong ?

@abhithshaji
Copy link

I think sendTransation function is provided by hardhat.

@mohdziyadc
Copy link

sendTransaction is a function provided by hardhat. Please read this to get more information
https://ethereum.stackexchange.com/questions/103097/what-is-signer-sendtransaction-and-its-purpose-in-the-hardhat-mainnet-for

As for the test to work, make sure you have added
receive() external payable {}
in your Escrow.sol
I fixed it like this

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

No branches or pull requests

3 participants