make run of ut for nft transfer and withdraw
@@ -37,7 +37,6 @@ func (z *zksync) execLocalZksync(tx *types.Transaction, receiptData *types.Recei
zt.TyFullExitLog,
zt.TySwapLog,
zt.TyMintNFTLog,
- zt.TyTransferNFTLog,
zt.TyWithdrawNFTLog,
zt.TyFeeLog:
var receipt zt.AccountTokenBalanceReceipt
@@ -49,6 +48,20 @@ func (z *zksync) execLocalZksync(tx *types.Transaction, receiptData *types.Recei
if err != nil {
return nil, err
}
+ case zt.TyTransferNFTLog:
+ var receipt zt.TransferReceipt
+ err := types.Decode(log.GetLog(), &receipt)
+ if err != nil {
+ return nil, err
+ }
+ err = infoTable.Replace(receipt.From)
+ if err != nil {
+ return nil, err
+ }
+ err = infoTable.Replace(receipt.To)
+ if err != nil {
+ return nil, err
+ }
case zt.TyCommitProofLog:
var proof zt.ReceiptCommitProof
err := types.Decode(log.GetLog(), &proof)
