Skip to content

Commit 8a528ef

Browse files
authored
isApproved -> setApprovalForAll string fix ERC721/ERC1155 libs (#14)
1 parent 22a4ab9 commit 8a528ef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Assets/Thirdweb/Scripts/ERC1155.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public async Task<int> TotalSupply(string tokenId)
100100
/// </summary>
101101
public async Task<TransactionResult> SetApprovalForAll(string contractToApprove, bool approved)
102102
{
103-
return await Bridge.InvokeRoute<TransactionResult>(getRoute("isApproved"), Utils.ToJsonStringArray(contractToApprove, approved));
103+
return await Bridge.InvokeRoute<TransactionResult>(getRoute("setApprovalForAll"), Utils.ToJsonStringArray(contractToApprove, approved));
104104
}
105105

106106
/// <summary>

Assets/Thirdweb/Scripts/ERC721.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public async Task<int> TotalUnclaimedSupply()
119119
/// </summary>
120120
public async Task<TransactionResult> SetApprovalForAll(string contractToApprove, bool approved)
121121
{
122-
return await Bridge.InvokeRoute<TransactionResult>(getRoute("isApproved"), Utils.ToJsonStringArray(contractToApprove, approved));
122+
return await Bridge.InvokeRoute<TransactionResult>(getRoute("setApprovalForAll"), Utils.ToJsonStringArray(contractToApprove, approved));
123123
}
124124

125125
/// <summary>

0 commit comments

Comments
 (0)