Skip to content

ZRC20 lock/unlock should not depend on ZRC20 being passed as parameter #3026

@fbac

Description

@fbac

Describe the Issue
Current implementation expects the ZRC20 ABI to be passed as parameter:

func (k Keeper) LockZRC20(
	ctx sdk.Context,
	zrc20ABI *abi.ABI,
	zrc20Address, spender, owner, locker common.Address,
	amount *big.Int,
) error

Expected Outcome
Ideally the API should be capable of getting the ZRC20 on its own. So a caller doesn't have to know anything about ZRC20.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions