-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
`isValidSignature` was calling the `bytes` version due to overloading issue with Truffle.
- Loading branch information
ßingen
committed
Jun 17, 2020
1 parent
7d6ee71
commit 3f21609
Showing
3 changed files
with
29 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
pragma solidity ^0.4.24; | ||
|
||
import "../../Agent.sol"; | ||
|
||
|
||
contract AgentMock is Agent { | ||
function isValidSignatureBytes32(bytes32 _hash, bytes memory _signature) public view returns (bytes4) { | ||
return isValidSignature(_hash, _signature); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
const runSharedAgentTests = require('./agent_shared.js') | ||
|
||
contract('Agent', (accounts) => { | ||
runSharedAgentTests('Agent', { accounts, artifacts, web3 }) | ||
runSharedAgentTests('AgentMock', { accounts, artifacts, web3 }) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters