put MessageBox in the MainModule (for now)
This commit is contained in:
parent
6ccaac1195
commit
8efe0f3718
|
|
@ -2,5 +2,5 @@ rm ./frontend/src/evm-output/*
|
||||||
|
|
||||||
cp "./evm/ignition/deployments/chain-31337/deployed_addresses.json" "./frontend/src/evm-output/deployed_addresses.json"
|
cp "./evm/ignition/deployments/chain-31337/deployed_addresses.json" "./frontend/src/evm-output/deployed_addresses.json"
|
||||||
|
|
||||||
cp "./evm/ignition/deployments/chain-31337/artifacts/MessageBoxModule#MessageBox.json" "./frontend/src/evm-output/MessageBox.artifacts.json"
|
cp "./evm/ignition/deployments/chain-31337/artifacts/MainModule#MessageBox.json" "./frontend/src/evm-output/MessageBox.artifacts.json"
|
||||||
cp "./evm/ignition/deployments/chain-31337/artifacts/MainModule#PADToken.json" "./frontend/src/evm-output/PADToken.artifacts.json"
|
cp "./evm/ignition/deployments/chain-31337/artifacts/MainModule#PADToken.json" "./frontend/src/evm-output/PADToken.artifacts.json"
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,11 @@ const MainModule = buildModule("MainModule", (m) => {
|
||||||
PAD_TOKEN_INITIAL_OWNER
|
PAD_TOKEN_INITIAL_OWNER
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const messageBox = m.contract("MessageBox", ["Hello OsiPad!"]); // TODO Remove
|
||||||
|
|
||||||
const padToken = m.contract("PADToken", [initialOwner]);
|
const padToken = m.contract("PADToken", [initialOwner]);
|
||||||
|
|
||||||
return { padToken };
|
return { messageBox, padToken };
|
||||||
});
|
});
|
||||||
|
|
||||||
export default MainModule;
|
export default MainModule;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{
|
{
|
||||||
"MainModule#PADToken": "0x5FbDB2315678afecb367f032d93F642f64180aa3",
|
"MainModule#MessageBox": "0x5FbDB2315678afecb367f032d93F642f64180aa3",
|
||||||
"MessageBoxModule#MessageBox": "0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512"
|
"MainModule#PADToken": "0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ if (window.ethereum) {
|
||||||
|
|
||||||
export const messageBox = new web3!.eth.Contract(
|
export const messageBox = new web3!.eth.Contract(
|
||||||
messageBoxArtifacts.abi,
|
messageBoxArtifacts.abi,
|
||||||
deployedAddresses["MessageBoxModule#MessageBox"]
|
deployedAddresses["MainModule#MessageBox"]
|
||||||
);
|
);
|
||||||
|
|
||||||
export const padToken = new web3!.eth.Contract(
|
export const padToken = new web3!.eth.Contract(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue