|
|
@@ -77,7 +77,7 @@ func adminContractUpgradeToVAA(req *nodev1.ContractUpgrade, guardianSetIndex uin
|
|
|
return nil, errors.New("invalid new_contract address")
|
|
|
}
|
|
|
|
|
|
- if req.ChainId > math.MaxUint8 {
|
|
|
+ if req.ChainId > math.MaxUint16 {
|
|
|
return nil, errors.New("invalid chain_id")
|
|
|
}
|
|
|
|
|
|
@@ -96,7 +96,7 @@ func adminContractUpgradeToVAA(req *nodev1.ContractUpgrade, guardianSetIndex uin
|
|
|
// tokenBridgeRegisterChain converts a nodev1.TokenBridgeRegisterChain message to its canonical VAA representation.
|
|
|
// Returns an error if the data is invalid.
|
|
|
func tokenBridgeRegisterChain(req *nodev1.BridgeRegisterChain, guardianSetIndex uint32, nonce uint32, sequence uint64) (*vaa.VAA, error) {
|
|
|
- if req.ChainId > math.MaxUint8 {
|
|
|
+ if req.ChainId > math.MaxUint16 {
|
|
|
return nil, errors.New("invalid chain_id")
|
|
|
}
|
|
|
|