Fix token tests

pull/2736/head
Yorke Rhodes 1 year ago
parent 43ba1b46f1
commit cbea147c66
No known key found for this signature in database
GPG Key ID: 9EEACF1DA75C5627
  1. 4
      typescript/token/test/HypERC20.t.sol
  2. 6
      typescript/token/test/HypNativeScaled.t.sol

@ -66,7 +66,7 @@ abstract contract HypTokenTest is Test {
localMailbox = new TestMailbox(ORIGIN);
remoteMailbox = new TestMailbox(DESTINATION);
primaryToken = new ERC20Test(NAME, SYMBOL, TOTAL_SUPPLY);
primaryToken = new ERC20Test(NAME, SYMBOL, TOTAL_SUPPLY, DECIMALS);
noopHook = new TestPostDispatchHook();
localMailbox.setDefaultHook(address(noopHook));
@ -320,7 +320,7 @@ contract HypNativeTest is HypTokenTest {
super.setUp();
localToken = new HypNative();
nativeToken = HypNative(address(localToken));
nativeToken = HypNative(payable(address(localToken)));
nativeToken.initialize(address(localMailbox));

@ -40,17 +40,13 @@ contract HypNativeScaledTest is Test {
synth = new HypERC20(decimals);
synth.initialize(
address(environment.mailboxes(synthDomain)),
address(environment.igps(synthDomain)),
mintAmount * (10**decimals),
"Zebec BSC Token",
"ZBC"
);
native = new HypNativeScaled(scale);
native.initialize(
address(environment.mailboxes(nativeDomain)),
address(environment.igps(nativeDomain))
);
native.initialize(address(environment.mailboxes(nativeDomain)));
native.enrollRemoteRouter(
synthDomain,

Loading…
Cancel
Save