Calling a standard FA2 transfer
entrypoint with a lot of transfers at once breaks the transaction window.
When I break down the transfer into chunks of 13 at a time, it works - however the data shown in the transfer window is inaccurate then.
This transaction works, but shows a broken preview (notice how there are only two recipients shown):
[
{
"from_":"tz1c6JQUaRQa8p7tQYySrD3RfLyFurWRfexg",
"txs":[
{
"to_":"tz1PqooZUtCQqP539PmMzUWHtaUX6EQtFY5S",
"token_id":"10012",
"amount":"1"
},
{
"to_":"tz1NsE7vEgP3M9bDdkNGF4rCaTUENp5h56ZU",
"token_id":"53239",
"amount":"1"
},
{
"to_":"tz2MRhfAKUyNZDKH8XBzmXyCwd2h5ySbgZJJ",
"token_id":"53239",
"amount":"1"
},
{
"to_":"tz1aVgxdSRcHZZK9BSmEPHjMA6eM7dsiboN5",
"token_id":"53239",
"amount":"1"
},
{
"to_":"tz1bgkctNuMBKKkmqdw1NVTKChv5Sewb5t9y",
"token_id":"53229",
"amount":"1"
},
{
"to_":"tz1PqooZUtCQqP539PmMzUWHtaUX6EQtFY5S",
"token_id":"53229",
"amount":"1"
},
{
"to_":"tz2NXn1uhqMbfwSJ3w2Q6ymrPQkF45BxPu9L",
"token_id":"53229",
"amount":"1"
},
{
"to_":"tz1fhd4k1jSJRRcNVbkMwVzkKEhX3kzApsfk",
"token_id":"53229",
"amount":"1"
},
{
"to_":"tz1a6tAY8tZJVFaWj6Tmz9LEq2ugmdvFjjRs",
"token_id":"53229",
"amount":"1"
},
{
"to_":"tz1VLyW483Xza4WHHQyRKVp7WoBcN9mhiuQW",
"token_id":"53229",
"amount":"1"
},
{
"to_":"tz1NsE7vEgP3M9bDdkNGF4rCaTUENp5h56ZU",
"token_id":"53232",
"amount":"1"
},
{
"to_":"tz2MRhfAKUyNZDKH8XBzmXyCwd2h5ySbgZJJ",
"token_id":"53232",
"amount":"1"
},
{
"to_":"tz1aVgxdSRcHZZK9BSmEPHjMA6eM7dsiboN5",
"token_id":"53232",
"amount":"1"
}
]
}
]
Shows this preview:
![image](https://user-images.githubusercontent.com/343433/116809838-902c2180-ab40-11eb-9df6-be55bb47789c.png)
As soon as I add more than 13 items at once, the transaction breaks completely:
[
{
"from_":"tz1c6JQUaRQa8p7tQYySrD3RfLyFurWRfexg",
"txs":[
{
"to_":"tz1PqooZUtCQqP539PmMzUWHtaUX6EQtFY5S",
"token_id":"10012",
"amount":"1"
},
{
"to_":"tz1NsE7vEgP3M9bDdkNGF4rCaTUENp5h56ZU",
"token_id":"53239",
"amount":"1"
},
{
"to_":"tz2MRhfAKUyNZDKH8XBzmXyCwd2h5ySbgZJJ",
"token_id":"53239",
"amount":"1"
},
{
"to_":"tz1aVgxdSRcHZZK9BSmEPHjMA6eM7dsiboN5",
"token_id":"53239",
"amount":"1"
},
{
"to_":"tz1bgkctNuMBKKkmqdw1NVTKChv5Sewb5t9y",
"token_id":"53229",
"amount":"1"
},
{
"to_":"tz1PqooZUtCQqP539PmMzUWHtaUX6EQtFY5S",
"token_id":"53229",
"amount":"1"
},
{
"to_":"tz2NXn1uhqMbfwSJ3w2Q6ymrPQkF45BxPu9L",
"token_id":"53229",
"amount":"1"
},
{
"to_":"tz1fhd4k1jSJRRcNVbkMwVzkKEhX3kzApsfk",
"token_id":"53229",
"amount":"1"
},
{
"to_":"tz1a6tAY8tZJVFaWj6Tmz9LEq2ugmdvFjjRs",
"token_id":"53229",
"amount":"1"
},
{
"to_":"tz1VLyW483Xza4WHHQyRKVp7WoBcN9mhiuQW",
"token_id":"53229",
"amount":"1"
},
{
"to_":"tz1NsE7vEgP3M9bDdkNGF4rCaTUENp5h56ZU",
"token_id":"53232",
"amount":"1"
},
{
"to_":"tz2MRhfAKUyNZDKH8XBzmXyCwd2h5ySbgZJJ",
"token_id":"53232",
"amount":"1"
},
{
"to_":"tz1aVgxdSRcHZZK9BSmEPHjMA6eM7dsiboN5",
"token_id":"53232",
"amount":"1"
},
{
"to_":"tz1gLNb49fErXUiYdreLAAV6twp4v3Lm8V4H",
"token_id":"53232",
"amount":"1"
}
]
}
]
This is what it looks like:
![image](https://user-images.githubusercontent.com/343433/116809856-a803a580-ab40-11eb-8423-a9713c5000ac.png)
On the broken transaction, the console shows
commons.chunk.js:2 TypeError: Cannot read property 'split' of undefined
at u (commons.chunk.js:2)
at commons.chunk.js:2
at Object.useMemo (commons.chunk.js:2)
at t.useMemo (commons.chunk.js:2)
at c (commons.chunk.js:2)
at Ji (commons.chunk.js:2)
at _s (commons.chunk.js:2)
at yc (commons.chunk.js:2)
at mc (commons.chunk.js:2)
at sc (commons.chunk.js:2)