Skip to content

Commit

Permalink
contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
sqltrigger committed Jan 23, 2024
1 parent 2019eac commit ac2bf07
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion contracts/src/bridge/IBridge.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ interface IBridge {
// before calling this function for more or equal to the amount being bridged over.
// This can be done using IERC20(asset).approve(bridge, amount);
// asset - the address of the smart contract of the ERC20 token.
// amount - the number of tokens being transfered.
// amount - the number of tokens being transferred.
// receiver - the L2 address receiving the assets.
function sendERC20(
address asset,
Expand Down
4 changes: 2 additions & 2 deletions contracts/src/bridge/L1/IObscuroBridgeAdmin.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ pragma solidity >=0.7.0 <0.9.0;
// and has the functionality to modify it.
interface IObscuroBridgeAdmin {
// This will whitelist a token and generate a cross chain message to the ITokenFactory
// to create wrapped tokens in case of succcess.
// to create wrapped tokens in case of success.
function whitelistToken(
address asset,
string calldata name,
string calldata symbol
) external;

// This will delist the token and queue a message for it to be delisted on L2. Notice that the token itself
// can still be transfered between users, just not across chains.
// can still be transferred between users, just not across chains.
function removeToken(address asset) external;

function setRemoteBridge(address bridge) external;
Expand Down
2 changes: 1 addition & 1 deletion contracts/src/management/ManagementContract.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import * as MessageBus from "../messaging/MessageBus.sol";
contract ManagementContract is Ownable, Initializable {

constructor() {
// _disableInitializers(); //todo @siliev - figure out why the solidity compiler cant find this. Perhaps OZ needs a version upgrade?
// _disableInitializers(); //todo @siliev - figure out why the solidity compiler can't find this. Perhaps OZ needs a version upgrade?
}

event LogManagementContractCreated(address messageBusAddress);
Expand Down
2 changes: 1 addition & 1 deletion contracts/src/messaging/IMessageBus.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import "./Structs.sol";
interface IMessageBus {

// The event emitted whenever a message is published.
// The enclave listens for it on the deployed message bus addreses.
// The enclave listens for it on the deployed message bus addresses.
event LogMessagePublished
(
address sender,
Expand Down
4 changes: 2 additions & 2 deletions contracts/tasks/wallet-extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ task("obscuro:wallet-extension:start:local")
});
});

console.log("Wallet Exension started successfully");
console.log("Wallet Extension started successfully");
return weProcess;
});

Expand Down Expand Up @@ -131,7 +131,7 @@ task("obscuro:wallet-extension:stop:docker", "Stops the docker container with ma
await container?.stop()
});

task("obscuro:wallet-extension:add-key", "Creates a viewing key for a specifiec address")
task("obscuro:wallet-extension:add-key", "Creates a viewing key for a specific address")
.addParam("address", "The address for which to add key")
.setAction(async function(args, hre) {
async function viewingKeyForAddress(address: string) : Promise<string> {
Expand Down

0 comments on commit ac2bf07

Please sign in to comment.