You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function transferLand(int x, int y, address to) public {
return transfer(to, encodeTokenId(x, y));
}
function transferManyLand(int[] x, int[] y, address to) public {
require(x.length == y.length);
for (uint i = 0; i < x.length; i++) {
return transfer(to, encodeTokenId(x[i], y[i]));
}
}
To
function transferLand(int x, int y, address to) public {
transfer(to, encodeTokenId(x, y));
}
function transferManyLand(int[] x, int[] y, address to) public {
require(x.length == y.length);
for (uint i = 0; i < x.length; i++) {
transfer(to, encodeTokenId(x[i], y[i]));
}
}
transferLand it is working anyways, but transferManyLand is only transferred one land and then break the process due return keyword
The text was updated successfully, but these errors were encountered:
We should replace:
To
transferLand
it is working anyways, buttransferManyLand
is only transferred one land and then break the process duereturn
keywordThe text was updated successfully, but these errors were encountered: