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

spike(evm): Explore problems arising from ERC1155 fungible tokens with FunToken.ID() #1933

Open
Unique-Divine opened this issue Jun 20, 2024 · 0 comments
Labels
x: evm Relates to Nibiru EVM or the EVM Module

Comments

@Unique-Divine
Copy link
Member

package evm

import (
	"github.com/cometbft/cometbft/crypto/tmhash"
)

// FIXME: Explore problems arrising from ERC1155 creating multiple fungible
// tokens that are valid ERC20s with the same address.
func (fun FunToken) ID() []byte {
	return tmhash.Sum([]byte(fun.Erc20Addr + "|" + fun.BankDenom))
}
@Unique-Divine Unique-Divine added the x: evm Relates to Nibiru EVM or the EVM Module label Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
x: evm Relates to Nibiru EVM or the EVM Module
Projects
Status: ⚡ Building 🧱
Development

No branches or pull requests

1 participant