From 982f6067947ca9c4cc3296a9eab385cb43ef6b0f Mon Sep 17 00:00:00 2001 From: Lluis Erena Date: Mon, 12 Jun 2023 10:29:15 +0200 Subject: [PATCH] Transfer ERC1155 Implementation of transferERC1155Action from IERC1155 --- src/executor/ERC721Actions.sol | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/executor/ERC721Actions.sol b/src/executor/ERC721Actions.sol index bc6aaacf..cf29b874 100644 --- a/src/executor/ERC721Actions.sol +++ b/src/executor/ERC721Actions.sol @@ -2,9 +2,14 @@ pragma solidity ^0.8.0; import "openzeppelin-contracts/contracts/token/ERC721/IERC721.sol"; +import "openzeppelin-contracts/contracts/token/ERC1155/IERC1155.sol"; contract ERC721Actions { function transferERC721Action(address _token, uint256 _id, address _to) external { IERC721(_token).transferFrom(address(this), _to, _id); } + + function transferERC1155Action(address _token, uint256 _id, address _to, uint256 amount, bytes calldata data) external { + IERC1155(_token).safeTransferFrom(address(this), _to, _id, amount, data); + } }