fix: examples fix minor
MODIFY
examples/POS-client/ERC1155/burnSingle.js
examples/POS-client/ERC1155/burnSingle.js
@@ -4,8 +4,10 @@ const maticPOSClient = utils.getMaticPOSClient()
const execute = async () => {
try {
- const tx = await maticPOSClient.isSingleERC1155ExitProcessed(
- '0xbfc70c164f6951d9c9f3f87f2d1361ff216eb3d6fe9571430bd3f0711847a782'
+ let tx = await maticPOSClient.burnSingleERC1155(
+ config.child.DERC1155, //token address
+ '123', // id to burn
+ '1' // amount of id token to burn
)
console.log(tx) // eslint-disable-line

MODIFY
examples/POS-client/ERC1155/depositSingle.js
examples/POS-client/ERC1155/depositSingle.js
@@ -7,9 +7,9 @@ const execute = async () => {
const tx = await maticPOSClient.depositSingleERC1155ForUser(
config.root.DERC1155,
config.user.address,
- '123',
- '1',
- [],
+ '123', // token id
+ '1', // amount
+ [], // optional bytes
{
from: config.user.address,
gasPrice: '900000000000',

MODIFY
examples/POS-client/ERC721/approve.js
examples/POS-client/ERC721/approve.js
@@ -4,7 +4,7 @@ const maticPOSClient = utils.getMaticPOSClient()
const execute = async () => {
try {
- const tx = await maticPOSClient.approveERC20TokensForDeposit(config.root.DERC20, config.user.amount, {
+ const tx = await maticPOSClient.approveERC721TokensForDeposit(config.root.DERC721, config.user.tokenId, {
from: config.user.address,
gasPrice: '500000000000',
gas: 2500000,

fix: examples fix minor