Hello i'm writing an 1155 contract and have a function as follows:
function creditPowls(address _to) public onlyOwner {
uint256[] memory ids;
uint256[] memory vals;
for (uint i=0; i<=12; i++) {
minted++;
ids[i] = minted;
vals[i] = 1;
}
_mintBatch(_to, ids, vals, "");
}
but i'm getting the following error even though i'm not really dealing with payment.
revert: The transaction has been reverted to the initial state. Note: The called function should be payable if you send value and the value you send should be less than your current balance. Debug the transaction to get more information.
thanks in advance for any guidance.
