question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Contract Interaction] Support `tuple` type

See original GitHub issue

Currently, the Contract Interaction feature does not support tuple type as an input parameter.

An example that can cover most of the cases: https://rinkeby.etherscan.io/address/0x7cd0c9bde7fa02469e06cc37f4c73d2672c3be3c#code

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
tschubotzcommented, Jan 8, 2021

@zareth-san

By tuple do you also mean struct?

yes and no. no, you cannot use structs in the form of (bar: 0xmyaddress, baz: 123), yes you can still call functions that expect structs, see below

in the “Contract Interaction” option how would pass an argument of this type?

If I’m not mistaken you would have to pass it as simple (address, uiint256) tuple, i.e. (0xmyaddress, 123)

0reactions
tschubotzcommented, Jan 11, 2021

@zareth-san thanks for that screencast, appreciate it!

I created a bug ticket: gnosis/safe-react#1765.

For the time being it you could use the Transaction builder safe app. There it worked for me. You have to enter tuples like arrays there though. https://help.gnosis-safe.io/en/articles/4680071-create-a-batched-transaction-with-the-transaction-builder-safe-app

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Contract Interaction] Support `tuple` type · Issue #1028 - GitHub
Currently, the Contract Interaction feature does not support tuple type as an input parameter. An example that can cover most of the cases: ......
Read more >
Invalid Solidity Type Tuple[] - Ethereum Stack Exchange
The error lies within the web3-object, not your smart contract. The struct feature is not yet implemented there.
Read more >
Types — Solidity 0.8.17 documentation
The members of contract types are the external functions of the contract including any state variables marked as public . For a contract...
Read more >
Deploy & Run (part 2) — Remix - Ethereum IDE 1 ...
This section in the Run tab contains a list of deployed contracts to interact with through autogenerated UI of the deployed contract (also...
Read more >
How to call a function that returns tuple[] - Stack Overflow
I am relatively new to interacting with smart contracts ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found