Skip to content

Commit

Permalink
rename token -> bridge in bridgeModel
Browse files Browse the repository at this point in the history
  • Loading branch information
notV4l committed Jan 17, 2024
1 parent c00ba62 commit e570e9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/bridge/sn/src/dojo_bridge.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ trait IDojoBridge<TState> {
#[derive(Model, Copy, Drop, Serde)]
struct DojoBridgeModel {
#[key]
token: ContractAddress,
bridge: ContractAddress,
// address L1 bridge contract address, the L1 counterpart to this contract
l1_bridge: felt252,
// Dojo ERC20 token on Starknet
Expand Down Expand Up @@ -108,7 +108,7 @@ mod dojo_bridge {

// one time bridge initialization
set!(
self.world(), DojoBridgeModel { token: get_contract_address(), l1_bridge, l2_token }
self.world(), DojoBridgeModel { bridge: get_contract_address(), l1_bridge, l2_token }
);

// reverts if already initialized
Expand Down

0 comments on commit e570e9e

Please sign in to comment.