@@ -47,12 +47,12 @@ type spanBatchDynamicFeeTxData struct {
4747func (txData * spanBatchDynamicFeeTxData ) txType () byte { return types .DynamicFeeTxType }
4848
4949type spanBatchSetCodeTxData struct {
50- Value * big.Int // wei amount
51- GasTipCap * big.Int // maxPriorityFeePerGas (EIP-1559)
52- GasFeeCap * big.Int // maxFeePerGas (EIP-1559)
53- Data []byte // contract invocation input data
54- AccessList types.AccessList // EIP-2930 access list
55- AuthList []types.Authorization // EIP-7702 authorization list
50+ Value * big.Int // wei amount
51+ GasTipCap * big.Int // maxPriorityFeePerGas (EIP-1559)
52+ GasFeeCap * big.Int // maxFeePerGas (EIP-1559)
53+ Data []byte // contract invocation input data
54+ AccessList types.AccessList // EIP-2930 access list
55+ AuthList []types.SetCodeAuthorization // EIP-7702 authorization list
5656}
5757
5858func (txData * spanBatchSetCodeTxData ) txType () byte { return types .SetCodeTxType }
@@ -190,7 +190,7 @@ func (tx *spanBatchTx) convertToFullTx(nonce, gas uint64, to *common.Address, ch
190190 case types .SetCodeTxType :
191191 batchTxInner := tx .inner .(* spanBatchSetCodeTxData )
192192 inner = & types.SetCodeTx {
193- ChainID : chainID . Uint64 ( ),
193+ ChainID : uint256 . MustFromBig ( chainID ),
194194 Nonce : nonce ,
195195 GasTipCap : uint256 .MustFromBig (batchTxInner .GasTipCap ),
196196 GasFeeCap : uint256 .MustFromBig (batchTxInner .GasFeeCap ),
@@ -242,7 +242,7 @@ func newSpanBatchTx(tx types.Transaction) (*spanBatchTx, error) {
242242 Value : tx .Value (),
243243 Data : tx .Data (),
244244 AccessList : tx .AccessList (),
245- AuthList : tx .AuthList (),
245+ AuthList : tx .SetCodeAuthorizations (),
246246 }
247247
248248 default :
0 commit comments