mirror of
https://github.com/luxfi/api.git
synced 2026-09-24 00:24:53 +00:00
refactor(zap): rename InitializeRequest.LuxAssetID -> UTXOAssetID (canonical)
Decomplect step: the primary-network fee asset is canonically UTXOAssetID (named for the function, not the chain), matching runtime.Runtime.UTXOAssetID (runtime v1.1.0). Wire layout is unchanged (positional encoding), so this is source-only and wire-compatible; vm/node consumers switch from req.LuxAssetID to req.UTXOAssetID when they bump to the released api carrying this rename. Kept separate from the ReadCount safety commit. Co-authored-by: Hanzo Dev <[email protected]>
This commit is contained in:
@@ -39,7 +39,7 @@ type InitializeRequest struct {
|
||||
PublicKey []byte
|
||||
XChainID []byte
|
||||
CChainID []byte
|
||||
LuxAssetID []byte
|
||||
UTXOAssetID []byte
|
||||
ChainDataDir string
|
||||
GenesisBytes []byte
|
||||
UpgradeBytes []byte
|
||||
@@ -56,7 +56,7 @@ func (m *InitializeRequest) Encode(buf *Buffer) {
|
||||
buf.WriteBytes(m.PublicKey)
|
||||
buf.WriteBytes(m.XChainID)
|
||||
buf.WriteBytes(m.CChainID)
|
||||
buf.WriteBytes(m.LuxAssetID)
|
||||
buf.WriteBytes(m.UTXOAssetID)
|
||||
buf.WriteString(m.ChainDataDir)
|
||||
buf.WriteBytes(m.GenesisBytes)
|
||||
buf.WriteBytes(m.UpgradeBytes)
|
||||
@@ -86,7 +86,7 @@ func (m *InitializeRequest) Decode(r *Reader) error {
|
||||
if m.CChainID, err = r.ReadBytes(); err != nil {
|
||||
return err
|
||||
}
|
||||
if m.LuxAssetID, err = r.ReadBytes(); err != nil {
|
||||
if m.UTXOAssetID, err = r.ReadBytes(); err != nil {
|
||||
return err
|
||||
}
|
||||
if m.ChainDataDir, err = r.ReadString(); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user