Skip to content
This repository has been archived by the owner on Aug 13, 2024. It is now read-only.

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
JayChoi1736 committed Oct 21, 2022
1 parent 8be6c79 commit 4157787
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions klaytn/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -1035,34 +1035,6 @@ func createSuccessFeeOperation(idx int64, account string, amount *big.Int) *Rose
}
}

func createSuccessFeeOperationWithRelatedOperations(
idx int64,
relatedOperationsIdx []int64,
account string,
amount *big.Int,
) *RosettaTypes.Operation { // nolint
op := RosettaTypes.Operation{
OperationIdentifier: &RosettaTypes.OperationIdentifier{
Index: idx,
},
RelatedOperations: []*RosettaTypes.OperationIdentifier{},
Type: FeeOpType,
Status: RosettaTypes.String(SuccessStatus),
Account: &RosettaTypes.AccountIdentifier{
Address: MustChecksum(account),
},
Amount: &RosettaTypes.Amount{
Value: amount.String(),
Currency: Currency,
},
}
for _, rid := range relatedOperationsIdx {
ridOp := RosettaTypes.OperationIdentifier{Index: rid}
op.RelatedOperations = append(op.RelatedOperations, &ridOp)
}
return &op
}

// feeOps returns the transaction's fee operations.
// In the case of Klaytn, depending on the transaction type, the address where the fee is paid may
// be different. In addition, transaction fees must be allocated to CN, KIR, and KGF addresses
Expand Down

0 comments on commit 4157787

Please sign in to comment.