Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Commit

Permalink
Add default native token (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-maj authored Aug 4, 2023
1 parent 0550bf3 commit db3c270
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion thirdweb/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,16 @@ func getNativeTokenByChainId(chainId ChainID) (*NativeToken, error) {
},
}, nil
default:
return nil, errors.New("Unsupported chain id")
return &NativeToken{
"Ether",
"ETH",
18,
&WrappedToken{
zeroAddress,
"Wrapped Ether",
"WETH",
},
}, nil
}
}

Expand Down

0 comments on commit db3c270

Please sign in to comment.