-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: prepare release #941
Conversation
* Fix + improve the confirm transaction e2e test The test was incorrect because it used the same transaction hash repeatedly, leading to assertions being made on an already confirmed transaction instead of a newly proposed one. By adding a timestamp to the transaction data, we ensure that each transaction hash is unique. Additionally, the test incorrectly called the `isValidSignature` function with a transaction hash. This function is intended only for messages, causing the contract call to fail consistently. However, the error was not properly caught; the function merely returns `false` when an error occurs. With the migration to viem, the `isValidSignature` contract call sometimes takes too long to fail, resulting in occasional test timeouts. By removing the incorrect call, we prevent those timeout errors. * Fix tests by using another Safe address that is not used by the confirmTransaction test
improve check scripts
Pull Request Test Coverage Report for Build 10349994982Details
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
@@ -32,8 +36,9 @@ describe('proposeTransaction', () => { | |||
it('should allow to create and confirm transactions signature using a Safe signer', async () => { | |||
const safeTransactionData: SafeTransactionDataPartial = { | |||
to: safeAddress, | |||
value: '100000000000000000', // 0.01 ETH | |||
data: '0x' | |||
value: '10000000000000000', // 0.01 ETH |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the comment on the right-hand side still correct? You could use the viem#parseEther and remove the comment altogether.
.sort((a, b) => Number(a.chainId - b.chainId)) | ||
.map( | ||
(network, index) => | ||
` { chainId: ${network.chainId}n, shortName: '${network.shortName}' }${index === networks.length - 1 ? '' : ','}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem with this thing is that, because we are assembling bits of content in different statements, its hard to understand the outgoing structure. Life would be much kinder to us if it looked more like "stuffing" a template (if possible)... e.g.:
`
export const networks: NetworkShortName[] = [
${sortedNetworks.map(network => `
{
chainId: '${network.name}',
shortName: '${network.shortName}'
}`).join(',')}
]
`
What it solves
Prepare release to be merged into main
Versions
Main changes
@safe-global/safe-deployments
to the latest version #936