Skip to content

Commit 32de24a

Browse files
committed
save
1 parent fa9a5aa commit 32de24a

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

core/types/arb_types.go

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -773,6 +773,41 @@ func (tx *ArbitrumSubmitRetryableTx) RawSignatureValues() (*uint256.Int, *uint25
773773
return uintZero, uintZero, uintZero
774774
}
775775

776+
func (tx *ArbitrumSubmitRetryableTx) payloadSize() int {
777+
size := 0
778+
size++
779+
size += rlp.BigIntLenExcludingHead(tx.ChainId)
780+
size++
781+
size += 32
782+
size++
783+
size += 20
784+
size++
785+
size += rlp.BigIntLenExcludingHead(tx.L1BaseFee)
786+
size++
787+
size += rlp.BigIntLenExcludingHead(tx.DepositValue)
788+
size++
789+
size += rlp.BigIntLenExcludingHead(tx.GasFeeCap)
790+
size++
791+
size += rlp.IntLenExcludingHead(tx.Gas)
792+
size++
793+
if tx.RetryTo != nil {
794+
size += 20
795+
}
796+
size++
797+
size += rlp.BigIntLenExcludingHead(tx.RetryValue)
798+
size++
799+
size += 20
800+
size++
801+
size += rlp.BigIntLenExcludingHead(tx.MaxSubmissionFee)
802+
size++
803+
size += 20
804+
size += rlp.StringLen(tx.RetryData)
805+
return size
806+
}
807+
808+
func (tx *LegacyTx) encodePayload(w io.Writer, b []byte, payloadSize, nonceLen, gasLen int) error {
809+
}
810+
776811
func (tx *ArbitrumSubmitRetryableTx) AsMessage(s Signer, baseFee *big.Int, rules *chain.Rules) (Message, error) {
777812
//TODO implement me
778813
panic("implement me")

0 commit comments

Comments
 (0)