gnosisguild / ethers-multisend Goto Github PK
View Code? Open in Web Editor NEWAn npm package for crafting multi-send transaction from a Zodiac Avatar, such as a Gnosis Safe, based on ethers.js
License: GNU Lesser General Public License v3.0
An npm package for crafting multi-send transaction from a Zodiac Avatar, such as a Gnosis Safe, based on ethers.js
License: GNU Lesser General Public License v3.0
I want to send ETH and ERC20 tokens to multiple addresses without any contracts between EOA and Multisend.sol
I've removed next line from MiltiSend.sol
require(address(this) != multisendSingleton, "MultiSend should only be called via delegatecall"); */
and tried to run the next test
it.only('should encode multiple ETH transfer transactions', async () => {
const transactions = [
{
to: firstRecipient.address,
value: BigNumber.from(10).pow(18).toString(),
data: '0x00',
},
{
to: secondRecipient.address,
value: BigNumber.from(10).pow(18).mul(2).toString(),
data: '0x00',
},
]
const multiSendTx = encodeMulti(
transactions,
multiSendContract.address
)
await multiSendContract.multiSend(multiSendTx.data).then((tx) => tx.wait());
Unfortunately, It doesn't work
Error: Transaction reverted without a reason string
Do you have any ideas? Is it even possible?
Thank you for your attention
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots / logs
If applicable, add screenshots and/or logs to help explain your problem.
Relevant environment details:
Additional context
Add any other context about the problem here.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.