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.

Incorrect multihash type for event topic string

See original GitHub issue

Our contract has a MultihashAdded event that emits a Multihash type:

event MultihashAdded(
  address indexed bullaManager,
  address bullaClaim,
  Multihash ipfsHash,
  uint256 blocktime
);

and the resulting typechain output for the event is:

events: {
  ...
  "MultihashAdded(address,address,tuple,uint256)": EventFragment;
  ...
}

it should be:

events: {
  ...
  "MultihashAdded(address,address,(bytes32,uint8,uint8),uint256)": EventFragment;
  ...
}

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
colinnielsencommented, Oct 27, 2021

@krzkaczor you stud 😎

1reaction
krzkaczorcommented, Oct 27, 2021

Fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

go-cid - Go Packages
A CIDv0 corresponds to a multihash of type DagProtobuf, ... Encoder) string; func (c Cid) Equals(o Cid) bool; func (c Cid) Hash() mh....
Read more >
ContainerPartitionKey interface - Microsoft Learn
Indicates the kind of algorithm used for partitioning. For MultiHash, multiple partition keys (upto three maximum) are supported for container create.
Read more >
Kubo command-line - IPFS Docs
API documentation for the Kubo command-line executable.
Read more >
Handling multiple event types in a topic using Confluent
In this tutorial, learn how to handling multiple event types using Confluent, with step-by-step instructions and examples.
Read more >
ipfs-postmsg-proxy - npm
When messages are passed using window.postMessage the data that is sent is cloned using the structured clone algorithm. It allows more things to...
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