Skip to content

Commit

Permalink
Refactor code
Browse files Browse the repository at this point in the history
  • Loading branch information
bonnie57 committed Apr 8, 2024
1 parent 21028f2 commit 16457c3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
1 change: 0 additions & 1 deletion packages/core-sdk/protocol-contracts
Submodule protocol-contracts deleted from 50ae4c
3 changes: 0 additions & 3 deletions packages/core-sdk/src/constants/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,3 @@ export const AddressZero = "0x0000000000000000000000000000000000000000";
export const HashZero = "0x0000000000000000000000000000000000000000000000000000000000000000";

export const SepoliaChainId = "11155111";

export const maxValueForApproval =
"115792089237316195423570985008687907853269984665640564039457584007913129639935";
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ import {
import chaiAsPromised from "chai-as-promised";
import { storyTestnetAddress } from "../../env";
import { chainStringToViemChain, waitTx } from "../../../src/utils/utils";
import { maxValueForApproval } from "../../../src/constants/common";
chai.use(chaiAsPromised);
const expect = chai.expect;

describe.skip("Test royalty Functions", () => {
let client: StoryClient;
let senderAddress: string;
Expand Down Expand Up @@ -186,10 +186,7 @@ describe.skip("Test royalty Functions", () => {
abi: abi,
address: storyTestnetAddress.MockERC20,
functionName: "approve",
args: [
client.royalty.royaltyPolicyLAPConfig.address,
maxValueForApproval as unknown as bigint,
],
args: [client.royalty.royaltyPolicyLAPConfig.address, BigInt(100)],
account: walletClient.account,
});
const approveHash = await walletClient.writeContract(call);
Expand Down

0 comments on commit 16457c3

Please sign in to comment.